X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_list.c;h=ecc03bfd7123ed94fe060f43e850df4778ff58c6;hp=afa8671c5bc479266d5dffdb868e8772c60553e7;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/sbr/seq_list.c b/sbr/seq_list.c index afa8671..ecc03bf 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -4,9 +4,14 @@ * -- as a space separated list of message ranges. * * $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 /* allocate this much buffer space at a time */ #define MAXBUFFER 1024 @@ -25,8 +30,7 @@ seq_list(struct msgs *mp, char *seqname) /* On first invocation, allocate initial buffer space */ if (!buffer) { len = MAXBUFFER; - if (!(buffer = malloc ((size_t) len))) - adios (NULL, "unable to malloc storage in seq_list"); + buffer = mh_xmalloc ((size_t) len); } /*