X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fconflict.c;h=50971199d202c293f5a105b6a94f92661a925ea6;hp=c0ba63ba984af3a8281b34d774611945794eb2fd;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=8f4c5da8971926f7eccc912f7998c343aef3c33b diff --git a/uip/conflict.c b/uip/conflict.c index c0ba63b..5097119 100644 --- a/uip/conflict.c +++ b/uip/conflict.c @@ -3,12 +3,17 @@ * conflict.c -- check for conflicts in mail system * * $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 +#include #include #include @@ -185,8 +190,7 @@ grp_names (void) /* allocate space NGRPS at a time */ numgroups = 0; maxgroups = NGRPS; - if (!(grps = (char **) malloc((size_t) (maxgroups * sizeof(*grps))))) - adios (NULL, "unable to allocate group name storage"); + grps = (char **) mh_xmalloc((size_t) (maxgroups * sizeof(*grps))); setgrent (); while ((gr = getgrent ())) {