X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fadd.c;h=40201c12ec300981d7e7dfeb70e41179964b7fb4;hp=f977c271d90d02ee1306610b5d9d06ff0b294dc0;hb=8f0c973e6cfebb193010714453f70f55ceae5dd7;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 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) {