aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_shout.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-12 12:13:27 +0200
committerMax Kellermann <max@duempel.org>2008-10-12 12:13:27 +0200
commitff69f122593f400f68db944505bf007d2938d912 (patch)
tree29a86f10f24f397580b2e85b285a5af329102eb7 /src/audioOutputs/audioOutput_shout.c
parentffed2fdca7b8757770fe01a7642a8d4e0c7fe3c8 (diff)
downloadmpd-ff69f122593f400f68db944505bf007d2938d912.tar.gz
mpd-ff69f122593f400f68db944505bf007d2938d912.tar.xz
mpd-ff69f122593f400f68db944505bf007d2938d912.zip
shout: use strcmp() instead of strncasecmp()
Case insensitivity isn't helpful, and comparing only the first 3 bytes of a configured value may encourage users to supply wrong or misleading values.
Diffstat (limited to 'src/audioOutputs/audioOutput_shout.c')
-rw-r--r--src/audioOutputs/audioOutput_shout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c
index 00c4eb059..54f2c4ff1 100644
--- a/src/audioOutputs/audioOutput_shout.c
+++ b/src/audioOutputs/audioOutput_shout.c
@@ -191,9 +191,9 @@ static void *my_shout_init_driver(struct audio_output *audio_output,
block_param = getBlockParam(param, "encoding");
if (block_param) {
- if (0 == strncasecmp(block_param->value, "mp3", 3))
+ if (0 == strcmp(block_param->value, "mp3"))
encoding = block_param->value;
- else if (0 == strncasecmp(block_param->value, "ogg", 3))
+ else if (0 == strcmp(block_param->value, "ogg"))
encoding = block_param->value;
else
FATAL("shout encoding \"%s\" is not \"ogg\" or "