Use case-insensitive comparison for all Info_Key functions
Info_ValueForKey performs case-insensitive comparisons on key names, other functions should also be case-insensitive for consistency.
This commit is contained in:
1 parent
ff05fee2bf
commit
9c29b25ab8
1 file changed
+2
-2
@@ -1221,7 +1221,7 @@ void Info_RemoveKey( char *s, const char *key ) {
|
||||
}
|
||||
*o = 0;
|
||||
|
||||
if (!strcmp (key, pkey) )
|
||||
if (!Q_stricmp (key, pkey) )
|
||||
{
|
||||
memmove(start, s, strlen(s) + 1); // remove this part
|
||||
|
||||
@@ -1277,7 +1277,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
|
||||
}
|
||||
*o = 0;
|
||||
|
||||
if (!strcmp (key, pkey) )
|
||||
if (!Q_stricmp (key, pkey) )
|
||||
{
|
||||
memmove(start, s, strlen(s) + 1); // remove this part
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user