From f6fe44b75d5c86fde805b0d00494dc44a9c93b2e Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Sun, 21 Dec 2003 03:02:31 +0000 Subject: - fix how popd handles buffers - bump PORTREVISION PR: 58270 Submitted by: PAK KweonCheol Approved by: maintainer --- mail/popd/Makefile | 2 +- mail/popd/files/patch-lib::funcs.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 mail/popd/files/patch-lib::funcs.c (limited to 'mail/popd') diff --git a/mail/popd/Makefile b/mail/popd/Makefile index 843ee893487c..2d514831d78d 100644 --- a/mail/popd/Makefile +++ b/mail/popd/Makefile @@ -7,7 +7,7 @@ PORTNAME= popd PORTVERSION= 2.2.2a -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= ftp://ftp3.za.freebsd.org/pub/popd/ diff --git a/mail/popd/files/patch-lib::funcs.c b/mail/popd/files/patch-lib::funcs.c new file mode 100644 index 000000000000..ff835dd6eb14 --- /dev/null +++ b/mail/popd/files/patch-lib::funcs.c @@ -0,0 +1,20 @@ +$FreeBSD$ + +--- lib/funcs.c.orig Mon Mar 3 21:10:19 2003 ++++ lib/funcs.c Wed Oct 15 11:18:01 2003 +@@ -198,11 +198,11 @@ + len = vsnprintf(p, MAXBUFLEN - (buffer - p), format, pvar); + } + va_end(pvar); +- if (p - buffer + len + 3 > MAXBUFLEN) { +- xwrite(buffer, p - buffer + len); ++ p += len; ++ if (p - buffer + 3 > MAXBUFLEN) { ++ xwrite(buffer, p - buffer); + p = buffer; + } +- p += len; + *p++ = '\r'; + *p++ = '\n'; + if (flag == SEND_FLUSH) { + -- cgit v1.2.3