diff options
author | jkh <jkh@FreeBSD.org> | 1998-06-28 16:44:01 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-06-28 16:44:01 +0800 |
commit | 71d5c1d95afa00e76ced12553d576063094661cc (patch) | |
tree | 574172f3b6acf9312395d8c356b6c45f20e372a2 /mail | |
parent | d1fdb69f794b242f3cb608d64723018fccedf8b3 (diff) | |
download | freebsd-ports-gnome-71d5c1d95afa00e76ced12553d576063094661cc.tar.gz freebsd-ports-gnome-71d5c1d95afa00e76ced12553d576063094661cc.tar.zst freebsd-ports-gnome-71d5c1d95afa00e76ced12553d576063094661cc.zip |
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')
-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); |