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.
This commit is contained in:
Max Kellermann 2008-10-12 12:13:27 +02:00
parent ffed2fdca7
commit ff69f12259

View File

@ -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 "