fix a divinely dumbassed mistake of global 'i' and 'corners' variables

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:39:25 +02:00
parent a32778260f
commit ac864530cd

View file

@ -303,9 +303,6 @@ anglemod(float a)
return a;
}
int i;
vec3_t corners[2];
/*
* This is the slow, general version
*/
@ -1228,7 +1225,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;
}