buffer was too small

This commit is contained in:
Thies C. Arntzen 2001-07-29 20:16:45 +00:00
parent 354f1158d8
commit 832849e522

View File

@ -89,7 +89,7 @@ extern void xslt_make_array(zval **zarr, char ***carr)
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;