aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-14 23:23:05 +0100
committerMax Kellermann <max@duempel.org>2009-01-14 23:23:05 +0100
commit283c2621f3e7dabf2e1159807289743a0abe657d (patch)
tree1e5493bf9334dab82a7afdd9a0e866d7e98c7be1 /src/decoder
parentf353bf77ba17cf75489f10d60e0593c740e669fb (diff)
downloadmpd-283c2621f3e7dabf2e1159807289743a0abe657d.tar.gz
mpd-283c2621f3e7dabf2e1159807289743a0abe657d.tar.xz
mpd-283c2621f3e7dabf2e1159807289743a0abe657d.zip
oggvorbis: use g_ascii_strncasecmp() instead of strncasecmp()
Don't depend on the daemon's locale settings. Comment names are ASCII.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/oggvorbis_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c
index a74722cdf..e7df60326 100644
--- a/src/decoder/oggvorbis_plugin.c
+++ b/src/decoder/oggvorbis_plugin.c
@@ -90,11 +90,11 @@ static long ogg_tell_cb(void *vdata)
static const char *
vorbis_comment_value(const char *comment, const char *needle)
{
- int len = strlen(needle);
+ size_t len = strlen(needle);
- if (strncasecmp(comment, needle, len) == 0 && *(comment + len) == '=') {
+ if (g_ascii_strncasecmp(comment, needle, len) == 0 &&
+ comment[len] == '=')
return comment + len + 1;
- }
return NULL;
}