Info_RemoveKey: use memmove instead of strcpy for overlapping memory areas.

Submitted by: Ozkan Sezer
This commit is contained in:
Yamagi Burmeister 2015-08-31 18:53:18 +02:00
parent 445f266843
commit 70c9889d16

View file

@ -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;
}