mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-18 23:21:37 +00:00
strcpy -> memmove as string does overlap which should be avoided according to the manpage. Thanks to Jacques Boscq.
This commit is contained in:
parent
11d9608fca
commit
0ea4387270
1 changed files with 2 additions and 1 deletions
|
@ -1143,7 +1143,8 @@ void Info_RemoveKey( char *s, const char *key ) {
|
||||||
|
|
||||||
if (!strcmp (key, pkey) )
|
if (!strcmp (key, pkey) )
|
||||||
{
|
{
|
||||||
strcpy (start, s); // remove this part
|
memmove(start, s, strlen(s) + 1); // remove this part
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue