diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/UriUtil.cxx | 4 |
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 */ |