From 9038882d953f25d9f0d7c00cb073cd9430754333 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Apr 2009 09:28:16 +0200 Subject: alsa_mixer: use g_ascii_strcasecmp() instead of strcasecmp() strcasecmp() is locale dependent, making it a bad choice for internal string comparisons. --- src/mixer/alsa_mixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mixer') diff --git a/src/mixer/alsa_mixer.c b/src/mixer/alsa_mixer.c index 52f30b6f..52e553cc 100644 --- a/src/mixer/alsa_mixer.c +++ b/src/mixer/alsa_mixer.c @@ -121,8 +121,8 @@ alsa_mixer_open(struct mixer *data) while (elem) { if (snd_mixer_elem_get_type(elem) == SND_MIXER_ELEM_SIMPLE) { - if ((strcasecmp(am->control, - snd_mixer_selem_get_name(elem)) == 0) && + if ((g_ascii_strcasecmp(am->control, + snd_mixer_selem_get_name(elem)) == 0) && (am->index == snd_mixer_selem_get_index(elem))) { break; } -- cgit v1.2.3