From 9c29b25ab8be0e464470df80e1761f3e0ee1e396 Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Wed, 19 Nov 2025 20:42:52 +0100 Subject: [PATCH] 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. --- code/qcommon/q_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c index 37f2ec05..be72dc70 100644 --- a/code/qcommon/q_shared.c +++ b/code/qcommon/q_shared.c @@ -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;