aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 09:34:03 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 09:34:03 +0200
commit3db834f6b34ea42d5680f3e0d0aa7f84ef87063c (patch)
tree286b3e76e8edd4bee3c1fdf35383fe4c33ff34f6
parentb546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5 (diff)
downloadmpd-3db834f6b34ea42d5680f3e0d0aa7f84ef87063c.tar.gz
mpd-3db834f6b34ea42d5680f3e0d0aa7f84ef87063c.tar.xz
mpd-3db834f6b34ea42d5680f3e0d0aa7f84ef87063c.zip
command: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}