X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fconcat.c;h=4d4e15c1fd9191d76b6674764ea74f7c69ba1e7d;hb=ac33b2e9c3632537b93fc4755a925c682d1eb82e;hp=a338835b3386abd3ba57263db47f0db593823406;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/concat.c b/sbr/concat.c index a338835..4d4e15c 100644 --- a/sbr/concat.c +++ b/sbr/concat.c @@ -11,6 +11,7 @@ */ #include +#include char * @@ -26,8 +27,7 @@ concat (char *s1, ...) len += strlen (cp); va_end(list); - if (!(dp = sp = malloc(len))) - adios (NULL, "unable to allocate string storage"); + dp = sp = mh_xmalloc(len); sp = copy(s1, sp);