freebsd-ports/mail/popd/files/patch-lib::funcs.c
Pete Fritchman f6fe44b75d - fix how popd handles buffers
- bump PORTREVISION

PR:		58270
Submitted by:	PAK KweonCheol <kpark@asec.jp>
Approved by:	maintainer
2003-12-21 03:02:31 +00:00

21 lines
451 B
C

$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) {