X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2..d2da15ecabb03fb2de72863abdf5f21e52fdf329:/uip/scansbr.c diff --git a/uip/scansbr.c b/uip/scansbr.c index b178e759..3bede5ae 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -97,7 +97,7 @@ scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, width = MAXSCANL; } dat[3] = slwidth = width; - scanl = (char *) mh_xmalloc((size_t) (slwidth + 2) ); + scanl = (char *) mh_xmalloc((size_t) MB_CUR_MAX * (slwidth + 2) ); if (outnum) umask(~m_gmprot());