mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +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) )
|
||||
{
|
||||
strcpy (start, s); // remove this part
|
||||
memmove(start, s, strlen(s) + 1); // remove this part
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue