net/libbgpdump: add patch from bitbucket

https://bitbucket.org/ripencc/bgpdump/issue/12/binary-garbage-at-the-end-of-output

PR:		192091
Submitted by:	citrin+pr@citrin.ru
Approved by:	mjl@luckie.org.nz (maintainer)
This commit is contained in:
Kurt Jaeger 2014-07-25 03:50:02 +00:00
parent c248296493
commit b921e1a116
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362865
2 changed files with 14 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= libbgpdump
PORTVERSION= 1.4.99.13
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.ris.ripe.net/source/bgpdump/
EXTRACT_SUFX= .tgz

View file

@ -0,0 +1,13 @@
--- bgpdump.c.old 2014-07-24 13:02:50.000000000 +0000
+++ bgpdump.c 2014-07-24 13:03:27.000000000 +0000
@@ -164,10 +164,6 @@
exit(1);
}
- // more efficient then line buffering
- char buffer[16000];
- setbuffer(stdout, buffer, sizeof buffer);
-
BGPDUMP *my_dump = bgpdump_open_dump(argv[0]);
do {