]> git.marmaro.de Git - mmh/blobdiff - uip/send.c
Replace mh_xmalloc() with mh_xcalloc()
[mmh] / uip / send.c
index df8134017dd73e6d76c2d9a521420c651c46f02d..d47ba8eaa473afee8336faefb630fe5355d9b263 100644 (file)
@@ -348,7 +348,7 @@ attach(char *draft_file_name)
        }
 
        /* We'll grow the buffer as needed. */
-       field = (char *)mh_xmalloc(field_size = 256);
+       field = (char *)mh_xcalloc(field_size = 256, sizeof(char));
 
        /*
        ** Scan the draft file for an attachment header field name.
@@ -484,7 +484,7 @@ signandenc(char *draft_file_name)
        }
 
        /* We'll grow the buffer as needed. */
-       field = (char *)mh_xmalloc(field_size = 256);
+       field = (char *)mh_xcalloc(field_size = 256, sizeof(char));
 
        /* Scan the draft file for an attachment header field name. */
        while (get_line() != EOF && *field != '\0' && *field != '-') {