X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fadd.c;h=40201c12ec300981d7e7dfeb70e41179964b7fb4;hp=f38110f72c54d3f923edf4782f324c684318dfa1;hb=8f0c973e6cfebb193010714453f70f55ceae5dd7;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/sbr/add.c b/sbr/add.c index f38110f..40201c1 100644 --- a/sbr/add.c +++ b/sbr/add.c @@ -8,9 +8,14 @@ * -- malloc'ed memory. Then free "s1". * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include +#include char * add (char *s2, char *s1) @@ -24,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) {