Use memmove rather than strcpy for removing key values

This commit is contained in:
smallmodel 2024-06-22 16:39:00 +02:00
parent e207715b5e
commit 0b747bf1c5
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

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