- fix empty path PR: 247376 Submitted by: Alexey Dokuchaev Obtained from: Gentoo - fix mutiple peers behind same IP Obtained from: Timothy Palpant
12 lines
260 B
Text
12 lines
260 B
Text
--- bencode.cpp.orig
|
|
+++ bencode.cpp
|
|
@@ -258,7 +258,8 @@
|
|
n -= r;
|
|
if( 'e' == *pb ) break;
|
|
if( pathname >= endmax ) return 0;
|
|
- *pathname++ = PATH_SP;
|
|
+ if (q)
|
|
+ *pathname++ = PATH_SP;
|
|
}
|
|
*pathname = '\0';
|
|
return (pb - b + 1);
|