]> git.marmaro.de Git - mmh/blobdiff - sbr/concat.c
Fix out-of-bounds error when incorporating email from stdin
[mmh] / sbr / concat.c
index 4a57656f149afb583324c978d09e942f31c9ace0..9efe73180d894870b7e14e606b1950a0f7da0c39 100644 (file)
@@ -36,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);