command: use g_ascii_strcasecmp() instead of strcasecmp()

strcasecmp() is locale dependent, making it a bad choice for internal
string comparisons.
This commit is contained in:
Max Kellermann 2009-04-28 09:34:03 +02:00
parent b546cf65bc
commit 3db834f6b3

View File

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