freebsd-ports/net-p2p/ctorrent/files/patch-empty-path
Dirk Meyer 0856284444 - fix empty announce list
- fix empty path
PR:		247376
Submitted by:	Alexey Dokuchaev
Obtained from:	Gentoo

- fix mutiple peers behind same IP
Obtained from:	Timothy Palpant
2020-06-25 11:33:34 +00:00

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);