mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
fix a stupid use of strcpy()
strcpy() arguments may not overlap !
This commit is contained in:
parent
5d7612ec84
commit
c52e35bcd8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue