mirror of
https://github.com/yquake2/ctf.git
synced 2025-05-11 19:10:37 +00:00
Info_RemoveKey: use memmove instead of strcpy for overlapping memory areas.
Submitted by: Ozkan Sezer
This commit is contained in:
parent
445f266843
commit
70c9889d16
1 changed files with 14 additions and 14 deletions
|
@ -1223,7 +1223,7 @@ Info_RemoveKey(char *s, 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