diff options
author | petef <petef@FreeBSD.org> | 2003-12-21 11:02:31 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2003-12-21 11:02:31 +0800 |
commit | 518f22bf3da0bd664a4ff1404747417102792393 (patch) | |
tree | ef2d49dc7ebc9bf5b127ae525402425b440cd34b /mail/popd | |
parent | 3a1dbcf30842867cdf6acd8d9239dcef7816584b (diff) | |
download | freebsd-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/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) { + |