It's UWAweek 48


This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying selected article
Showing 1 of 919 articles.
Currently 7 other people reading this forum.

 UWA week 39 (2nd semester, week 9) ↓
SVG not supported

Login to reply

2:56pm Thu 29th Sep, James A.

It's hard to tell without looking at your system, but it sounds like there isn't enough space allocated in the destination array to hold the result. Remember, strcat doesn't contain any mechanism for allocating more space, so the destination has to have enough space to contain both the source and destination strings once combined (plus null terminator). Otherwise, dest will go past the end of valid memory, which would be a bug in the caller, not strcat itself.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy