aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-26 19:47:52 +0100
committerMax Kellermann <max@duempel.org>2009-03-26 19:47:52 +0100
commitdd8c6d67388b21458c8feff8225f5d45fd7e9386 (patch)
treebdb819e6bd4b144d5ec7bb14382cca4debd1c005 /src
parent114d5982bbd692749727ee54ec7f7f5b9017958f (diff)
downloadmpd-dd8c6d67388b21458c8feff8225f5d45fd7e9386.tar.gz
mpd-dd8c6d67388b21458c8feff8225f5d45fd7e9386.tar.xz
mpd-dd8c6d67388b21458c8feff8225f5d45fd7e9386.zip
oss_mixer: use g_ascii_strncasecmp() instead of strncasecmp()
strncasecmp() is locale dependent, but we only need ASCII here.
Diffstat (limited to '')
-rw-r--r--src/mixer/oss_mixer.c2
1 files changed, 1 insertions, 1 deletions
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;