X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhpath.c;h=5084b030a8493a6c346fef9ea8f2cd0aa2817bb3;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hp=5c2ac3138c43f0fe09deafa740b47473dec58030;hpb=017a82124bf2ea39ced5aa4c8f969c18b3c2fb90;p=mmh diff --git a/uip/mhpath.c b/uip/mhpath.c index 5c2ac31..5084b03 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -3,9 +3,14 @@ * mhpath.c -- print full pathnames of nmh messages and folders * * $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 static struct swit switches[] = { #define VERSIONSW 0 @@ -48,8 +53,7 @@ main(int argc, char **argv) */ nummsgs = 0; maxmsgs = MAXMSGS; - if (!(msgs = (char **) malloc ((size_t) (maxmsgs * sizeof(*msgs))))) - adios (NULL, "unable to allocate storage"); + msgs = (char **) mh_xmalloc ((size_t) (maxmsgs * sizeof(*msgs))); /* * Parse arguments