X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fscansbr.c;h=3bede5ae792a54b3b75e0a9bfa9491c692d73349;hb=d2da15ecabb03fb2de72863abdf5f21e52fdf329;hp=b178e75955a5944a0d226366e0894ae625b9c0a2;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;p=mmh diff --git a/uip/scansbr.c b/uip/scansbr.c index b178e75..3bede5a 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());