aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
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;
}