Commit 283c2621 authored by Max Kellermann's avatar Max Kellermann

oggvorbis: use g_ascii_strncasecmp() instead of strncasecmp()

Don't depend on the daemon's locale settings. Comment names are ASCII.
parent f353bf77
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment