From 3db834f6b34ea42d5680f3e0d0aa7f84ef87063c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Apr 2009 09:34:03 +0200 Subject: [PATCH] command: use g_ascii_strcasecmp() instead of strcasecmp() strcasecmp() is locale dependent, making it a bad choice for internal string comparisons. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 2ad6362d7..1290a34e7 100644 --- a/src/command.c +++ b/src/command.c @@ -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); } }