diff options
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r-- | Zend/zend_alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h index a4d03d9749..4462a80fb6 100644 --- a/Zend/zend_alloc.h +++ b/Zend/zend_alloc.h @@ -89,7 +89,7 @@ inline static void * __zend_malloc(size_t len) inline static void * __zend_calloc(size_t nmemb, size_t len) { void *tmp = _safe_malloc(nmemb, len, 0); - memset(tmp, 0, len); + memset(tmp, 0, nmemb * len); return tmp; } |