aboutsummaryrefslogtreecommitdiffstats
path: root/src/OtherCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-14 22:00:21 +0200
committerMax Kellermann <max@duempel.org>2013-10-14 22:00:21 +0200
commit6fd481df978ad4666780ef838e6c8540f6ea190f (patch)
treee437903388be90df8a92c58c05af8f4f51c7e8e1 /src/OtherCommands.cxx
parentb915e433911b4597626c721a8ae4a6e9dae6ac5a (diff)
downloadmpd-6fd481df978ad4666780ef838e6c8540f6ea190f.tar.gz
mpd-6fd481df978ad4666780ef838e6c8540f6ea190f.tar.xz
mpd-6fd481df978ad4666780ef838e6c8540f6ea190f.zip
Mapper, ...: use memcmp() instead of strncmp() where appropriate
Micro-optimization.
Diffstat (limited to 'src/OtherCommands.cxx')
-rw-r--r--src/OtherCommands.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx
index 52899d184..f60078cf9 100644
--- a/src/OtherCommands.cxx
+++ b/src/OtherCommands.cxx
@@ -114,7 +114,7 @@ handle_lsinfo(Client *client, int argc, char *argv[])
/* default is root directory */
uri = "";
- if (strncmp(uri, "file:///", 8) == 0) {
+ if (memcmp(uri, "file:///", 8) == 0) {
/* print information about an arbitrary local file */
const char *path_utf8 = uri + 7;
const Path path_fs = Path::FromUTF8(path_utf8);