aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 09:33:44 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 09:33:44 +0200
commitb546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5 (patch)
tree3c47d3c555e201006bc1ba0e4389e51a405763ca
parentd3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef (diff)
downloadmpd-b546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5.tar.gz
mpd-b546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5.tar.xz
mpd-b546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5.zip
utils: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
Diffstat (limited to '')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index a6a468974..fc27b13c9 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -135,7 +135,7 @@ int set_nonblocking(int fd)
int stringFoundInStringArray(const char *const*array, const char *suffix)
{
while (array && *array) {
- if (strcasecmp(*array, suffix) == 0)
+ if (g_ascii_strcasecmp(*array, suffix) == 0)
return 1;
array++;
}