X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fforw.c;h=319cc3980be6d24e9b43558884b3902aaeec46c6;hp=e842d2692f4a6da0c7331196b3a26cfc060a625c;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/forw.c b/uip/forw.c index e842d26..319cc39 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -13,6 +13,7 @@ #include #include #include +#include #define IFORMAT "digest-issue-%s" @@ -688,8 +689,7 @@ build_form (char *form, char *digest, int volume, int issue) if ((in = dup (fileno (tmp))) == NOTOK) adios ("dup", "unable to"); - if ((line = malloc ((unsigned) fmtsize)) == NULL) - adios (NULL, "unable to allocate format line storage"); + line = mh_xmalloc ((unsigned) fmtsize); fmt_scan (fmt, line, fmtsize, dat); fputs (line, tmp); free (line);