From bcb74f0a47472fbdc8bf9243e404b47976ad3a1d Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 14 Sep 2004 13:18:16 +0000 Subject: calloc memory rather than mallocing it - can't hurt too much, and is probably a bit safer --- dbutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbutil.c b/dbutil.c index 4036841..cc7fcf8 100644 --- a/dbutil.c +++ b/dbutil.c @@ -544,7 +544,7 @@ void * m_malloc(size_t size) { if (size == 0) { dropbear_exit("m_malloc failed"); } - ret = malloc(size); + ret = calloc(1, size); if (ret == NULL) { dropbear_exit("m_malloc failed"); } -- cgit v1.2.1