diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-09-14 13:18:16 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-09-14 13:18:16 +0000 |
commit | bcb74f0a47472fbdc8bf9243e404b47976ad3a1d (patch) | |
tree | dc8b86153717b02f4a90e055469d3590ae23e874 | |
parent | 57159b173ec2e94f93fe47a3220a3576ff35c43c (diff) | |
download | dropbear-bcb74f0a47472fbdc8bf9243e404b47976ad3a1d.tar.gz |
calloc memory rather than mallocing it - can't hurt too much, and is
probably a bit safer
-rw-r--r-- | dbutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |