diff options
author | Max Kellermann <max@duempel.org> | 2013-10-14 22:00:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-14 22:00:21 +0200 |
commit | 6fd481df978ad4666780ef838e6c8540f6ea190f (patch) | |
tree | e437903388be90df8a92c58c05af8f4f51c7e8e1 /src/playlist | |
parent | b915e433911b4597626c721a8ae4a6e9dae6ac5a (diff) |
Mapper, ...: use memcmp() instead of strncmp() where appropriate
Micro-optimization.
Diffstat (limited to 'src/playlist')
-rw-r--r-- | src/playlist/SoundCloudPlaylistPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |