From: Ralph Corderoy Date: Sun, 7 May 2017 12:56:40 +0000 (+0100) Subject: uip/replsbr.c: Replace single use of SBUFSIZ with NMH_BUFSIZ. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b40ecb4417e49cbc53459b28ee394a3b2eb93c9c?ds=sidebyside uip/replsbr.c: Replace single use of SBUFSIZ with NMH_BUFSIZ. The former was defined as the latter; not a lot of point having it. --- diff --git a/uip/replsbr.c b/uip/replsbr.c index 2cb06ece..fe79c295 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -24,15 +24,6 @@ static char *dfhost = NULL; static struct mailname mq; static int nodupcheck = 0; /* If set, no check for duplicates */ -/* - * Buffer size for content part of header fields. - * We want this to be large enough so that we don't - * do a lot of extra FLDPLUS calls on m_getfld but - * small enough so that we don't snarf the entire - * message body when we're not going to use any of it. - */ -#define SBUFSIZ NMH_BUFSIZ - static char *addrcomps[] = { "from", "sender", @@ -65,7 +56,7 @@ replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen, { int state, i; struct comp *cptr; - char tmpbuf[SBUFSIZ]; + char tmpbuf[NMH_BUFSIZ]; struct format *fmt; char **ap; int char_read = 0, format_len, mask;