From 578a2f9852646a275362539898cee23190ac3888 Mon Sep 17 00:00:00 2001 From: Th3-822 Date: Wed, 2 Dec 2015 19:08:10 -0430 Subject: [PATCH] Fix strncmp case sensitivity strncmp was using case insensitive call when ignorecase == false --- amxmodx/string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/string.cpp b/amxmodx/string.cpp index 726bd048..9fb384ee 100755 --- a/amxmodx/string.cpp +++ b/amxmodx/string.cpp @@ -1311,9 +1311,9 @@ static cell AMX_NATIVE_CALL n_strncmp(AMX *amx, cell *params) char *str2 = get_amxstring(amx, params[2], 1, len); if (params[4]) - return strncmp(str1, str2, (size_t)params[3]); - else return strncasecmp(str1, str2, (size_t)params[3]); + else + return strncmp(str1, str2, (size_t)params[3]); } static cell AMX_NATIVE_CALL n_strfind(AMX *amx, cell *params)