X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fforw.c;h=319cc3980be6d24e9b43558884b3902aaeec46c6;hp=661a084bf2bfbf43ce5b625cc91793b649f2c4ce;hb=1513f7668c494c4583141d6115669b7198c14556;hpb=7879ea4084333b448c5a3a49c1cb52023e3808d1 diff --git a/uip/forw.c b/uip/forw.c index 661a084..319cc39 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -3,12 +3,17 @@ * forw.c -- forward a message, or group of messages. * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include #include #include +#include #define IFORMAT "digest-issue-%s" @@ -684,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);