svn commit: r320530 - in head/net-p2p/ctorrent: . files

Dirk Meyer dinoex at FreeBSD.org
Tue Jun 11 04:44:19 UTC 2013


Author: dinoex
Date: Tue Jun 11 04:44:18 2013
New Revision: 320530
URL: http://svnweb.freebsd.org/changeset/ports/320530

Log:
  - fix negative int bug
  - take maintainership
  PR:		169283
  Submitted by:	dinoex
  Approved by:	flz
  Obtained from:	http://sourceforge.net/tracker/?func=detail&aid=3159066&group_id=202532&atid=981959

Added:
  head/net-p2p/ctorrent/files/patch-negative-ints   (contents, props changed)
Modified:
  head/net-p2p/ctorrent/Makefile

Modified: head/net-p2p/ctorrent/Makefile
==============================================================================
--- head/net-p2p/ctorrent/Makefile	Tue Jun 11 03:42:47 2013	(r320529)
+++ head/net-p2p/ctorrent/Makefile	Tue Jun 11 04:44:18 2013	(r320530)
@@ -12,7 +12,7 @@ CATEGORIES=	net-p2p
 MASTER_SITES=	http://www.rahul.net/dholmes/ctorrent/
 DISTNAME=	${PORTNAME}-dnh${PORTVERSION}
 
-MAINTAINER=	flz at FreeBSD.org
+MAINTAINER=	dinoex at FreeBSD.org
 COMMENT=	BitTorrent Client written in C for FreeBSD and Linux
 
 GNU_CONFIGURE=	yes

Added: head/net-p2p/ctorrent/files/patch-negative-ints
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/ctorrent/files/patch-negative-ints	Tue Jun 11 04:44:18 2013	(r320530)
@@ -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;


More information about the svn-ports-all mailing list