diff options
author | Max Kellermann <max@duempel.org> | 2009-04-28 09:33:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-28 09:33:44 +0200 |
commit | b546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5 (patch) | |
tree | 3c47d3c555e201006bc1ba0e4389e51a405763ca | |
parent | d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef (diff) | |
download | mpd-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.c | 2 |
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++; } |