From c82f33874743548147f485752d0441a0691624ce Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 9 Aug 2012 15:20:49 +0200 Subject: [PATCH] Fix split_zurl bug (missing char after /). Bug introduced in db015fa75ee1f475040dba0512fc (version 1.3.40) --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '+'); -- 1.7.10.4