aboutsummaryrefslogtreecommitdiffstats
path: root/mail/popd
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-12-21 11:02:31 +0800
committerpetef <petef@FreeBSD.org>2003-12-21 11:02:31 +0800
commit518f22bf3da0bd664a4ff1404747417102792393 (patch)
treeef2d49dc7ebc9bf5b127ae525402425b440cd34b /mail/popd
parent3a1dbcf30842867cdf6acd8d9239dcef7816584b (diff)
downloadfreebsd-ports-gnome-518f22bf3da0bd664a4ff1404747417102792393.tar.gz
freebsd-ports-gnome-518f22bf3da0bd664a4ff1404747417102792393.tar.zst
freebsd-ports-gnome-518f22bf3da0bd664a4ff1404747417102792393.zip
- fix how popd handles buffers
- bump PORTREVISION PR: 58270 Submitted by: PAK KweonCheol <kpark@asec.jp> Approved by: maintainer
Diffstat (limited to 'mail/popd')
-rw-r--r--mail/popd/Makefile2
-rw-r--r--mail/popd/files/patch-lib::funcs.c20
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) {
+