diff dbutil.c @ 123:a0db9a23f6d4

calloc memory rather than mallocing it - can't hurt too much, and is probably a bit safer
author Matt Johnston <matt@ucc.asn.au>
date Tue, 14 Sep 2004 13:18:16 +0000
parents e0acad552a92
children 82fcf3185616
line wrap: on
line diff
--- a/dbutil.c	Tue Sep 14 13:09:29 2004 +0000
+++ b/dbutil.c	Tue Sep 14 13:18:16 2004 +0000
@@ -544,7 +544,7 @@
 	if (size == 0) {
 		dropbear_exit("m_malloc failed");
 	}
-	ret = malloc(size);
+	ret = calloc(1, size);
 	if (ret == NULL) {
 		dropbear_exit("m_malloc failed");
 	}