From 6fd481df978ad4666780ef838e6c8540f6ea190f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Oct 2013 22:00:21 +0200 Subject: Mapper, ...: use memcmp() instead of strncmp() where appropriate Micro-optimization. --- src/playlist/SoundCloudPlaylistPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/playlist/SoundCloudPlaylistPlugin.cxx') diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx index 99bef29e7..ee256f31f 100644 --- a/src/playlist/SoundCloudPlaylistPlugin.cxx +++ b/src/playlist/SoundCloudPlaylistPlugin.cxx @@ -175,7 +175,7 @@ static int handle_mapkey(void *ctx, const unsigned char* stringval, data->key = Other; for (i = 0; i < Other; ++i) { - if (strncmp((const char *)stringval, key_str[i], stringlen) == 0) { + if (memcmp((const char *)stringval, key_str[i], stringlen) == 0) { data->key = i; break; } -- cgit v1.2.3