mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-29 15:32:33 +00:00
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:
parent
a32778260f
commit
ac864530cd
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue