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:
parent
b546cf65bc
commit
3db834f6b3
@ -1490,7 +1490,7 @@ handle_idle(struct client *client,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (j = 0; idle_names[j]; ++j) {
|
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);
|
flags |= (1 << j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user