diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2003-12-21 03:02:31 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2003-12-21 03:02:31 +0000 |
commit | f6fe44b75d5c86fde805b0d00494dc44a9c93b2e (patch) | |
tree | bd9face62cb5853700b981c9608ee2bfc1431291 /mail | |
parent | 1a894a4c93e8f41515a7359b3865b3e552c521e1 (diff) |
- fix how popd handles buffers
- bump PORTREVISION
PR: 58270
Submitted by: PAK KweonCheol <kpark@asec.jp>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=96294
Diffstat (limited to 'mail')
-rw-r--r-- | mail/popd/Makefile | 2 | ||||
-rw-r--r-- | mail/popd/files/patch-lib::funcs.c | 20 |
2 files changed, 21 insertions, 1 deletions
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) { + |