mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
0856284444
- fix empty path PR: 247376 Submitted by: Alexey Dokuchaev Obtained from: Gentoo - fix mutiple peers behind same IP Obtained from: Timothy Palpant
13 lines
260 B
Plaintext
13 lines
260 B
Plaintext
--- 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);
|