projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e8337
)
Fix split_zurl bug (missing char after /).
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 9 Aug 2012 13:20:49 +0000
(15:20 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 9 Aug 2012 13:20:49 +0000
(15:20 +0200)
Bug introduced in
db015fa75ee1f475040dba0512fc
(version 1.3.40)
src/util.cpp
patch
|
blob
|
history
diff --git
a/src/util.cpp
b/src/util.cpp
index
4d433a5
..
97b1125
100644
(file)
--- 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, '+');