X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/105395ab9b3fb60628ff27062b6ce3f1f968021f..8ae9c34707bcd3d06d9856bc71003cc306b9c912:/uip/scansbr.c diff --git a/uip/scansbr.c b/uip/scansbr.c index 3c6b771d..749743c1 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -134,7 +134,9 @@ scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, if (used_buf == NULL) adios (NULL, "unable to allocate component buffer stack"); used_buf += ncomps+1; *--used_buf = 0; - rlwidth = bodycomp && (width > SBUFSIZ) ? min (width, BUFSIZ) : SBUFSIZ; + rlwidth = bodycomp && (width > SBUFSIZ) + ? min (width, NMH_BUFSIZ) + : SBUFSIZ; for (i = ncomps; i--; ) *nxtbuf++ = mh_xmalloc(rlwidth); } @@ -218,7 +220,6 @@ scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, break; case BODY: - compnum = -1; /* * A slight hack ... if we have less than rlwidth characters * in the buffer, call m_getfld again.