Fix strncmp case sensitivity

strncmp was using case insensitive call when ignorecase == false
This commit is contained in:
Th3-822 2015-12-02 19:08:10 -04:30
parent 47f66a3d13
commit 578a2f9852

View File

@ -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)