Commit b546cf65 authored by Max Kellermann's avatar Max Kellermann

utils: use g_ascii_strcasecmp() instead of strcasecmp()

strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
parent d3c93c1c
......@@ -135,7 +135,7 @@ int set_nonblocking(int fd)
int stringFoundInStringArray(const char *const*array, const char *suffix)
{
while (array && *array) {
if (strcasecmp(*array, suffix) == 0)
if (g_ascii_strcasecmp(*array, suffix) == 0)
return 1;
array++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment