summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-09-14 13:18:16 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-09-14 13:18:16 +0000
commitbcb74f0a47472fbdc8bf9243e404b47976ad3a1d (patch)
treedc8b86153717b02f4a90e055469d3590ae23e874
parent57159b173ec2e94f93fe47a3220a3576ff35c43c (diff)
downloaddropbear-bcb74f0a47472fbdc8bf9243e404b47976ad3a1d.tar.gz
calloc memory rather than mallocing it - can't hurt too much, and is
probably a bit safer
-rw-r--r--dbutil.c2
1 files changed, 1 insertions, 1 deletions
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");
}