From: Adam Dickmeiss Date: Thu, 9 Aug 2012 13:20:49 +0000 (+0200) Subject: Fix split_zurl bug (missing char after /). X-Git-Tag: v1.3.41~2 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=c82f33874743548147f485752d0441a0691624ce;p=metaproxy-moved-to-github.git Fix split_zurl bug (missing char after /). Bug introduced in db015fa75ee1f475040dba0512fc (version 1.3.40) --- diff --git a/src/util.cpp b/src/util.cpp index 4d433a5..97b1125 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -414,7 +414,7 @@ void mp_util::split_zurl(std::string zurl, std::string &host, { host = std::string(zurl_cstr, args - zurl_cstr); - const char *cp1 = args + 1; + const char *cp1 = args; while (1) { const char *cp2 = strchr(cp1, '+');