Commit 3db834f6 authored by Max Kellermann's avatar Max Kellermann

command: use g_ascii_strcasecmp() instead of strcasecmp()

strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
parent b546cf65
......@@ -1490,7 +1490,7 @@ handle_idle(struct client *client,
continue;
for (j = 0; idle_names[j]; ++j) {
if (!strcasecmp(argv[i], idle_names[j])) {
if (!g_ascii_strcasecmp(argv[i], idle_names[j])) {
flags |= (1 << j);
}
}
......
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