diff options
author | Max Kellermann <max@duempel.org> | 2009-04-28 09:28:16 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-28 09:28:16 +0200 |
commit | 9038882d953f25d9f0d7c00cb073cd9430754333 (patch) | |
tree | 0c56c7f34bb36b7e4ec641d00183b0725e9b1094 /src/mixer/alsa_mixer.c | |
parent | 05dfdfdb398146f3427be154bfe599fac61ed025 (diff) | |
download | mpd-9038882d953f25d9f0d7c00cb073cd9430754333.tar.gz mpd-9038882d953f25d9f0d7c00cb073cd9430754333.tar.xz mpd-9038882d953f25d9f0d7c00cb073cd9430754333.zip |
alsa_mixer: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal
string comparisons.
Diffstat (limited to '')
-rw-r--r-- | src/mixer/alsa_mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/alsa_mixer.c b/src/mixer/alsa_mixer.c index 52f30b6f4..52e553cc5 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; } |