X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fadd.c;h=40201c12ec300981d7e7dfeb70e41179964b7fb4;hb=23f854c962a161cc8ed982b23183600df376e818;hp=f977c271d90d02ee1306610b5d9d06ff0b294dc0;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/add.c b/sbr/add.c index f977c27..40201c1 100644 --- a/sbr/add.c +++ b/sbr/add.c @@ -15,6 +15,7 @@ */ #include +#include char * add (char *s2, char *s1) @@ -28,8 +29,7 @@ add (char *s2, char *s1) len2 = strlen (s2); - if (!(cp = malloc (len1 + len2 + 1))) - adios (NULL, "unable to allocate string storage"); + cp = mh_xmalloc (len1 + len2 + 1); /* Copy s1 and free it */ if (s1) {