Replace mh_xmalloc() with mh_xcalloc()
[mmh] / sbr / brkstring.c
index 205c8c9..acbba6a 100644 (file)
@@ -30,7 +30,7 @@ brkstring(char *str, char *brksep, char *brkterm)
        /* allocate initial space for pointers on first call */
        if (!broken) {
                len = NUMBROKEN;
-               broken = (char **)mh_xmalloc((size_t)(len * sizeof(*broken)));
+               broken = (char **)mh_xcalloc((size_t)len, sizeof(*broken));
        }
 
        /*