in qcommon/q_shared.c function Info_RemoveKey line 1147 it would be better to use memmove instead of "strcpy (start, s);" because as said in the manual page of strcpy : "The strings may not overlap".
Revision 1280 made the following change. Is this not what you think is being tracked here?
Modified: trunk/code/qcommon/q_shared.c
===================================================================
--- trunk/code/qcommon/q_shared.c 2008-03-25 21:59:31 UTC (rev 1279)
+++ trunk/code/qcommon/q_shared.c 2008-03-25 22:06:08 UTC (rev 1280)
@@ -1143,7 +1143,8 @@
if (!strcmp (key, pkey) )
{
- strcpy (start, s); // remove this part
+ memmove(start, s, strlen(s) + 1); // remove this part
+
return;
}
Revision 1280 made the following change. Is this not what you think is being tracked here? Modified: trunk/code/qcommon/q_shared.c =================================================================== --- trunk/code/qcommon/q_shared.c 2008-03-25 21:59:31 UTC (rev 1279) +++ trunk/code/qcommon/q_shared.c 2008-03-25 22:06:08 UTC (rev 1280) @@ -1143,7 +1143,8 @@ if (!strcmp (key, pkey) ) { - strcpy (start, s); // remove this part + memmove(start, s, strlen(s) + 1); // remove this part + return; }