]> granicus.if.org Git - php/commitdiff
Fixed calloc wrapper
authorIlia Alshanetsky <iliaa@php.net>
Wed, 7 Mar 2007 00:55:49 +0000 (00:55 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 7 Mar 2007 00:55:49 +0000 (00:55 +0000)
Zend/zend_alloc.h

index 0b6036f2e10eaefae028062e9cf39a6021bdc584..c77ab47028c9e68f98f7d412217a1cc64a21684f 100644 (file)
@@ -86,9 +86,9 @@ inline static void * __zend_malloc(size_t len)
   exit(1);
 }
 
-inline static void * __zend_calloc(size_t len)
+inline static void * __zend_calloc(size_t nmemb, size_t len)
 {
-  void *tmp = __zend_malloc(len);
+  void *tmp = _safe_malloc(nmemb, len, 0);
   memset(tmp, 0, len);
   return tmp;
 }