]> git.marmaro.de Git - mmh/blobdiff - sbr/brkstring.c
Added -nocontentid (and -contentid, for symmetry) switch to mhbuild. This allows...
[mmh] / sbr / brkstring.c
index 255abf7465bf8c5a97d7d7b026894f6100f82eb1..d2f71aa32074a5a92ba8810da8f2c31523f62156 100644 (file)
@@ -48,8 +48,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))