X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_list.c;h=ecc03bfd7123ed94fe060f43e850df4778ff58c6;hp=8a440691a417eaca0eea716d1c569d92b9a430c4;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/sbr/seq_list.c b/sbr/seq_list.c index 8a44069..ecc03bf 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -11,6 +11,7 @@ */ #include +#include /* allocate this much buffer space at a time */ #define MAXBUFFER 1024 @@ -29,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); } /*