X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fbrkstring.c;h=5375596de68b49e817ae406f809423f61607f385;hb=ab7b48411962d26439f92f35ed084d3d6275459c;hp=255abf7465bf8c5a97d7d7b026894f6100f82eb1;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;p=mmh diff --git a/sbr/brkstring.c b/sbr/brkstring.c index 255abf7..5375596 100644 --- a/sbr/brkstring.c +++ b/sbr/brkstring.c @@ -3,8 +3,6 @@ * brkstring.c -- (destructively) split a string into * -- an array of substrings * - * $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. @@ -48,8 +46,7 @@ brkstring (char *str, char *brksep, char *brkterm) /* enlarge pointer array, if necessary */ if (i >= len) { len += NUMBROKEN; - if (!(broken = realloc (broken, (size_t) (len * sizeof(*broken))))) - adios (NULL, "unable to realloc array in brkstring"); + broken = mh_xrealloc (broken, (size_t) (len * sizeof(*broken))); } while (brkany (c = *s, brksep))