From: David Levine Date: Sat, 22 Sep 2018 13:50:44 +0000 (-0400) Subject: Increased sizes of a couple of buffers. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/ccd09d8608bdf494e9ad8d0e1239e4f83953a383?hp=d3fbcfdac5b951d06c74138f2eeb88edcfe149f7 Increased sizes of a couple of buffers. gcc 8 noticed that snprintfs could have overrun them. --- diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index 9b2973a3..43352bde 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -226,7 +226,7 @@ mnfree (struct mailname *mp) char * auxformat (struct mailname *mp, int extras) { - static char addr[BUFSIZ]; + static char addr[BUFSIZ-4]; static char buffer[BUFSIZ]; if (mp->m_nohost) diff --git a/sbr/mf.c b/sbr/mf.c index 4f59e616..93528ee2 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -138,7 +138,7 @@ static char *host = NULL; static char *routepath = NULL; static char *grp = NULL; static char *note = NULL; -static char err[BUFSIZ]; +static char err[BUFSIZ+39]; static char adr[BUFSIZ]; static struct adrx adrxs2;