Replace mh_xmalloc() with mh_xcalloc()
[mmh] / uip / forw.c
index 4bb03d3..77339b3 100644 (file)
@@ -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((unsigned) fmtsize, sizeof(char));
        fmt_scan(fmt, line, fmtsize, dat);
        fputs(line, tmp);
        free(line);