use memmove instead of strcpy for overlapping memory areas.

Submitted by: Ozkan Sezer
This commit is contained in:
Yamagi Burmeister 2015-08-31 18:27:47 +02:00
parent 5d8b2ae701
commit 8272c04046

View file

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