aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
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/util
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/util')
-rw-r--r--src/util/UriUtil.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/UriUtil.cxx b/src/util/UriUtil.cxx
index 4b0cec11b..a326530e0 100644
--- a/src/util/UriUtil.cxx
+++ b/src/util/UriUtil.cxx
@@ -86,9 +86,9 @@ uri_remove_auth(const char *uri)
const char *auth, *slash, *at;
char *p;
- if (strncmp(uri, "http://", 7) == 0)
+ if (memcmp(uri, "http://", 7) == 0)
auth = uri + 7;
- else if (strncmp(uri, "https://", 8) == 0)
+ else if (memcmp(uri, "https://", 8) == 0)
auth = uri + 8;
else
/* unrecognized URI */