1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
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

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