]> diplodocus.org Git - nmh/blobdiff - uip/scansbr.c
On some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
[nmh] / uip / scansbr.c
index 3c6b771d3bb719ab6a500e7f25a93e0793ab57ad..ce49bee21f9dd21cce5afb21bd46bf98d04cff2c 100644 (file)
@@ -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);
     }