aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 09:42:05 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 09:42:05 +0200
commitfd81e7e3b6b14dceba74e47e9a9c209eb2c2aea4 (patch)
treedfaf69ae90d04ffdc256264b7bcf42eb3107c1fb
parent3db834f6b34ea42d5680f3e0d0aa7f84ef87063c (diff)
downloadmpd-fd81e7e3b6b14dceba74e47e9a9c209eb2c2aea4.tar.gz
mpd-fd81e7e3b6b14dceba74e47e9a9c209eb2c2aea4.tar.xz
mpd-fd81e7e3b6b14dceba74e47e9a9c209eb2c2aea4.zip
libsamplerate: use g_ascii_strncasecmp() instead of strncasecmp()
strncasecmp() is locale dependent, making it a bad choice for internal string comparisons.
-rw-r--r--src/pcm_resample_libsamplerate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_resample_libsamplerate.c b/src/pcm_resample_libsamplerate.c
index 3bd573809..6d019e892 100644
--- a/src/pcm_resample_libsamplerate.c
+++ b/src/pcm_resample_libsamplerate.c
@@ -65,7 +65,7 @@ static int pcm_resample_get_converter(void)
convalgo = SRC_SINC_FASTEST;
break;
}
- if (strncasecmp(test2, conf, len) == 0)
+ if (g_ascii_strncasecmp(test2, conf, len) == 0)
goto out;
}