mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Use memmove
rather than strcpy
for removing key values
This commit is contained in:
parent
e207715b5e
commit
0b747bf1c5
1 changed files with 3 additions and 1 deletions
|
@ -1854,7 +1854,9 @@ void Info_RemoveKey( char *s, const char *key ) {
|
|||
|
||||
if (!strcmp (key, pkey) )
|
||||
{
|
||||
strcpy (start, s); // remove this part
|
||||
//strcpy (start, s); // remove this part
|
||||
// Fixed in OPM
|
||||
memmove(start, s, strlen(s));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue