Bug 3416 - Overlapping strings with strcpy
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: All All
: P3 minor
Assignee: Tim Angus
QA Contact: Tremulous Bugs
URL:
Depends on:
Blocks:
 
Reported: 2007-11-11 10:38 EST by Jacques Boscq
Modified: 2009-01-28 19:34:35 EST
0 users

See Also:



Description Jacques Boscq 2007-11-11 10:38:22 EST
in qcommon/parse.c function Parse_StripDoubleQuotes, it's better to use memmove instead of "strcpy(string, string+1);" because as said in the manual page
of strcpy : "The  strings  may  not overlap".
Comment 1 Tim Angus 2007-11-11 10:49:48 EST
You don't need to submit the same bug for ioq3 and Tremulous.

*** This bug has been marked as a duplicate of bug 3414 ***
Comment 2 Tim Angus 2007-11-11 13:24:40 EST
Or it's a different bug...
Comment 3 M. Kristall 2009-01-28 19:34:35 EST
Fixed at revision 1148.