X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fforw.c;h=243c9181d99e60e85b5d1a2469d111ee07b7f0f8;hp=4bb03d34d3cfcb6738f4d82a85fa2d8093be5a52;hb=b78007de9802005825390bee71dfce2306b42519;hpb=1f8deea066cec81699c76bc4f8021fab658aae73 diff --git a/uip/forw.c b/uip/forw.c index 4bb03d3..243c918 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -333,7 +333,7 @@ build_form(char *form, char *digest, int volume, int issue) if ((in = dup(fileno(tmp))) == NOTOK) adios(EX_OSERR, "dup", "unable to"); - line = mh_xmalloc((unsigned) fmtsize); + line = mh_xcalloc(fmtsize, sizeof(char)); fmt_scan(fmt, line, fmtsize, dat); fputs(line, tmp); free(line);