cvs: php4 /ext/xslt xslt.c

From: Date: Sun, 29 Jul 2001 20:16:44 +0000
Subject: cvs: php4 /ext/xslt xslt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6394@lists.php.net to get a copy of this message
thies Sun Jul 29 16:16:44 2001 EDT Modified files: /php4/ext/xslt xslt.c Log: buffer was too small Index: php4/ext/xslt/xslt.c diff -u php4/ext/xslt/xslt.c:1.11 php4/ext/xslt/xslt.c:1.12 --- php4/ext/xslt/xslt.c:1.11 Fri Jul 27 06:16:34 2001 +++ php4/ext/xslt/xslt.c Sun Jul 29 16:16:44 2001 @@ -89,7 +89,7 @@ return; } - *carr = emalloc((zend_hash_num_elements(arr) * 2) + 1); + *carr = emalloc(((zend_hash_num_elements(arr) * 2) + 1) * sizeof(char *)); for (zend_hash_internal_pointer_reset(arr); zend_hash_get_current_data(arr, (void **) &current) == SUCCESS;

« previous php.cvs (#6394) next »