mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
use memmove instead of strcpy for overlapping memory areas.
Submitted by: Ozkan Sezer
This commit is contained in:
parent
5d8b2ae701
commit
8272c04046
1 changed files with 1 additions and 1 deletions
|
@ -1228,7 +1228,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