diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-06-28 08:44:01 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-06-28 08:44:01 +0000 |
commit | af81de00cc03a90356fbe2359f127adceb3f5f9b (patch) | |
tree | 65340aa6b01398ccfd39c471567a5ea3d80dab6f /mail/popper | |
parent | Mark this port broken, it no longer compiles after the freetype upgrade. (diff) |
DOH! Correct stupid brain-o with strcat() in my last commit. Now
popper should get a bit further without dumping core now. :-)
Diffstat (limited to 'mail/popper')
-rw-r--r-- | mail/popper/files/patch-ag | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/mail/popper/files/patch-ag b/mail/popper/files/patch-ag index b86319be3e93..c40dc5299c11 100644 --- a/mail/popper/files/patch-ag +++ b/mail/popper/files/patch-ag @@ -1,5 +1,23 @@ ---- pop_msg.c.orig Sat Jun 27 03:09:47 1998 -+++ pop_msg.c Sat Jun 27 14:35:49 1998 +--- pop_log.c.orig Wed Nov 19 13:20:38 1997 ++++ pop_log.c Sat Jun 27 14:46:17 1998 +@@ -47,12 +47,12 @@ + #endif + + #ifdef HAVE_VPRINTF +- vsprintf(msgbuf,format,ap); ++ vsnprintf(msgbuf,sizeof msgbuf,format,ap); + #else + # ifdef PYRAMID +- (void)sprintf(msgbuf,format, arg1, arg2, arg3, arg4, arg5, arg6); ++ (void)snprintf(msgbuf,sizeof msgbuf,format, arg1, arg2, arg3, arg4, arg5, arg6); + # else +- (void)sprintf (msgbuf,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], ++ (void)snprintf (msgbuf,sizeof msgbuf,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], + ((int *)ap)[3],((int *)ap)[4],((int *)ap)[5]); + # endif + va_end(ap); +--- pop_msg.c.orig Wed Nov 19 13:20:38 1997 ++++ pop_msg.c Sun Jun 28 01:35:05 1998 @@ -27,6 +27,7 @@ { POP * p; @@ -49,21 +67,3 @@ /* Send the message to the client */ (void)fputs(message,p->output); ---- pop_log.c.orig Wed Nov 19 13:20:38 1997 -+++ pop_log.c Sat Jun 27 14:46:17 1998 -@@ -47,12 +47,12 @@ - #endif - - #ifdef HAVE_VPRINTF -- vsprintf(msgbuf,format,ap); -+ vsnprintf(msgbuf,sizeof msgbuf,format,ap); - #else - # ifdef PYRAMID -- (void)sprintf(msgbuf,format, arg1, arg2, arg3, arg4, arg5, arg6); -+ (void)snprintf(msgbuf,sizeof msgbuf,format, arg1, arg2, arg3, arg4, arg5, arg6); - # else -- (void)sprintf (msgbuf,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], -+ (void)snprintf (msgbuf,sizeof msgbuf,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], - ((int *)ap)[3],((int *)ap)[4],((int *)ap)[5]); - # endif - va_end(ap); |