diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-13 05:02:52 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-13 05:02:52 +0000 |
commit | 458e18ffad053301c7648deec7ad1da6f873747c (patch) | |
tree | 2612644d85306184254b31150b10264911b42b1c /lib/gnutls_mem.c | |
parent | 22853894970ea9db7e7bf34206f3a7abf514d1fa (diff) | |
download | gnutls-458e18ffad053301c7648deec7ad1da6f873747c.tar.gz |
several fixes in the codebase, mostly in signed/unsigned checkings.
Diffstat (limited to 'lib/gnutls_mem.c')
-rw-r--r-- | lib/gnutls_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_mem.c b/lib/gnutls_mem.c index 340e82f19e..9b02527331 100644 --- a/lib/gnutls_mem.c +++ b/lib/gnutls_mem.c @@ -39,7 +39,7 @@ int (*_gnutls_is_secure_memory)(const void*) = _gnutls_is_secure_mem_null; void *_gnutls_calloc(size_t nmemb, size_t size) { void *ret; - ret = gnutls_malloc(size); + ret = gnutls_malloc(size*nmemb); if (ret == NULL) return ret; @@ -51,7 +51,7 @@ void *_gnutls_calloc(size_t nmemb, size_t size) svoid *gnutls_secure_calloc(size_t nmemb, size_t size) { svoid *ret; - ret = gnutls_secure_malloc(size); + ret = gnutls_secure_malloc(size*nmemb); if (ret == NULL) return ret; |