From dd8c6d67388b21458c8feff8225f5d45fd7e9386 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Mar 2009 19:47:52 +0100 Subject: oss_mixer: use g_ascii_strncasecmp() instead of strncasecmp() strncasecmp() is locale dependent, but we only need ASCII here. --- src/mixer/oss_mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mixer/oss_mixer.c b/src/mixer/oss_mixer.c index 4eb907153..a2f5adbd7 100644 --- a/src/mixer/oss_mixer.c +++ b/src/mixer/oss_mixer.c @@ -88,7 +88,7 @@ oss_find_mixer(const char *name) size_t name_length = strlen(name); for (unsigned i = 0; i < SOUND_MIXER_NRDEVICES; i++) { - if (strncasecmp(name, labels[i], name_length) == 0 && + if (g_ascii_strncasecmp(name, labels[i], name_length) == 0 && (labels[i][name_length] == 0 || labels[i][name_length] == ' ')) return i; -- cgit v1.2.3