diff options
author | ache <ache@FreeBSD.org> | 1998-06-28 04:47:27 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-06-28 04:47:27 +0800 |
commit | 9a41dda3e3f46f3197b85a6f5e9b3651013e98e0 (patch) | |
tree | 464f7c495f89c45cc67217d5a3bd232aef340ecd /mail/popper | |
parent | f19b599d29c4f5d6aed6f2675bc384949a385754 (diff) | |
download | freebsd-ports-gnome-9a41dda3e3f46f3197b85a6f5e9b3651013e98e0.tar.gz freebsd-ports-gnome-9a41dda3e3f46f3197b85a6f5e9b3651013e98e0.tar.zst freebsd-ports-gnome-9a41dda3e3f46f3197b85a6f5e9b3651013e98e0.zip |
Add -3 to len as room for \n\r\0
Diffstat (limited to 'mail/popper')
-rw-r--r-- | mail/popper/files/patch-ag | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/popper/files/patch-ag b/mail/popper/files/patch-ag index 6000477a31ae..662330daffb8 100644 --- a/mail/popper/files/patch-ag +++ b/mail/popper/files/patch-ag @@ -28,14 +28,14 @@ if (format) #ifdef HAVE_VPRINTF - vsprintf(mp,format,ap); -+ vsnprintf(mp,len,format,ap); ++ vsnprintf(mp,len-3,format,ap); #else # ifdef PYRAMID - (void)sprintf(mp,format, arg1, arg2, arg3, arg4, arg5, arg6); -+ (void)snprintf(mp,len,format, arg1, arg2, arg3, arg4, arg5, arg6); ++ (void)snprintf(mp,len-3,format, arg1, arg2, arg3, arg4, arg5, arg6); # else - (void)sprintf(mp,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], -+ (void)snprintf(mp,len,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], ++ (void)snprintf(mp,len-3,format,((int *)ap)[0],((int *)ap)[1],((int *)ap)[2], ((int *)ap)[3],((int *)ap)[4]); # endif #endif |