calloc memory rather than mallocing it - can't hurt too much, and is

probably a bit safer

--HG--
extra : convert_revision : bbd2edbb1410ea8fd7bee089f60154f76d2a0ab7
This commit is contained in:
Matt Johnston 2004-09-14 13:18:16 +00:00
parent 448a05ae2c
commit a41f9dc036

View File

@ -544,7 +544,7 @@ void * m_malloc(size_t size) {
if (size == 0) { if (size == 0) {
dropbear_exit("m_malloc failed"); dropbear_exit("m_malloc failed");
} }
ret = malloc(size); ret = calloc(1, size);
if (ret == NULL) { if (ret == NULL) {
dropbear_exit("m_malloc failed"); dropbear_exit("m_malloc failed");
} }