fix a stupid use of strcpy()
strcpy() arguments may not overlap !
This commit is contained in:
1 parent
5d7612ec84
commit
c52e35bcd8
1 file changed
+1
-1
@@ -1256,7 +1256,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
|
||||
|
||||
if (!strcmp (key, pkey) )
|
||||
{
|
||||
strcpy (start, s); // remove this part
|
||||
memmove(start, s, strlen(s) + 1); // remove this part
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user