mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fix Info_RemoveKey not correctly removing the key
This commit is contained in:
parent
47d6843b70
commit
583c2720e2
1 changed files with 2 additions and 3 deletions
|
@ -1853,9 +1853,8 @@ void Info_RemoveKey( char *s, const char *key ) {
|
|||
|
||||
if (!strcmp (key, pkey) )
|
||||
{
|
||||
//strcpy (start, s); // remove this part
|
||||
// Fixed in OPM
|
||||
memmove(start, s, strlen(s));
|
||||
memmove(start, s, strlen(s) + 1); // remove this part
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue