aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag_ape.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 09:32:38 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 09:32:38 +0200
commitd3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef (patch)
tree39ac71ab3a328611810335ad38c621eecb0836a9 /src/tag_ape.c
parentb2924405ae1d89e36a417cc43aaeba7a720f1290 (diff)
downloadmpd-d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef.tar.gz
mpd-d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef.tar.xz
mpd-d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef.zip
tag: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
Diffstat (limited to 'src/tag_ape.c')
-rw-r--r--src/tag_ape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tag_ape.c b/src/tag_ape.c
index 459f3450b..d1249fcb2 100644
--- a/src/tag_ape.c
+++ b/src/tag_ape.c
@@ -126,7 +126,7 @@ tag_ape_load(const char *file)
/* we only care about utf-8 text tags */
if (!(flags & (0x3 << 1))) {
for (i = 0; i < 7; i++) {
- if (strcasecmp(key, apeItems[i]) == 0) {
+ if (g_ascii_strcasecmp(key, apeItems[i]) == 0) {
if (!ret)
ret = tag_new();
tag_add_item_n(ret, tagItems[i],