Replace mh_xmalloc() with mh_xcalloc()
[mmh] / sbr / mf.c
index 633522b..3134328 100644 (file)
--- a/sbr/mf.c
+++ b/sbr/mf.c
@@ -42,7 +42,7 @@ getcpy(char *s)
                for(;;)
                        pause();
        }
-       p = mh_xmalloc((size_t) (strlen(s) + 2));
+       p = mh_xcalloc((size_t) (strlen(s) + 2), sizeof(char));
        strcpy(p, s);
        return p;
 }