Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-p2p/ctorrent/Makefile,v retrieving revision 1.24 diff -u -r1.24 Makefile --- Makefile 22 Feb 2010 19:02:37 -0000 1.24 +++ Makefile 21 Jun 2012 05:16:12 -0000 @@ -7,7 +7,7 @@ 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} Index: files/patch-negative-ints =================================================================== RCS file: files/patch-negative-ints diff -N files/patch-negative-ints --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-negative-ints 21 Jun 2012 05:16:12 -0000 @@ -0,0 +1,15 @@ +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;