X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6c42153ad9362cc676ea66563bf400d7511b3b68..1524cb8c0b86a854149d7859d6a2503d61dbaa36:/sbr/concat.c diff --git a/sbr/concat.c b/sbr/concat.c index a338835b..4d4e15c1 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);