PORTNAME= ctorrent
PORTVERSION= 3.3.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net-p2p
MASTER_SITES= http://www.rahul.net/dholmes/ctorrent/
DISTNAME= ${PORTNAME}-dnh${PORTVERSION}
allow negative integers ... should fix random "error, initial meta info failed"
--- bencode.cpp.orig
+++ bencode.cpp
@@ -44,6 +44,10 @@
p++; len--;
}
+ if( *p == '-'){
+ p++; len--;
+ }
+
for(psave = p; len && isdigit(*p); p++,len--) ;
if(!len || MAX_INT_SIZ < (p - psave) || *p != endchar) return 0;