lftp/lftp-3.7.14-decode.patch

13 lines
364 B
Diff

diff -up lftp-3.7.14/src/url.cc.decode lftp-3.7.14/src/url.cc
--- lftp-3.7.14/src/url.cc.decode 2009-03-20 12:20:14.000000000 +0100
+++ lftp-3.7.14/src/url.cc 2009-06-10 15:36:30.000000000 +0200
@@ -366,7 +366,7 @@ int url::decode_string(char *str)
*o++=*p++;
}
*o=0;
- return p-str;
+ return o-str;
}
const char *url::decode(const char *p)