X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fconcat.c;h=9efe73180d894870b7e14e606b1950a0f7da0c39;hp=5c519e9f4896f324fcd6df117e338c12b1f6db28;hb=88b2142594d5ea1e8385dae5eca81eed1018c555;hpb=552fd7253e5ee9e554c5c7a8248a6322aa4363bb diff --git a/sbr/concat.c b/sbr/concat.c index 5c519e9..9efe731 100644 --- a/sbr/concat.c +++ b/sbr/concat.c @@ -9,6 +9,7 @@ #include #include +#include static char * @@ -35,7 +36,7 @@ concat(char *s1, ...) len += strlen(cp); va_end(list); - dp = sp = mh_xmalloc(len); + dp = sp = mh_xcalloc(len, sizeof(char)); sp = copy(s1, sp);