summaryrefslogtreecommitdiff
path: root/ext/sybase_ct/php_sybase_ct.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-03-06 02:10:25 +0000
committerStanislav Malyshev <stas@php.net>2007-03-06 02:10:25 +0000
commit49a7bcd60b05fe225bb1513df9fcde11bbf649b3 (patch)
treec124a8f53182cab20466ba7e19643ceea8d09321 /ext/sybase_ct/php_sybase_ct.c
parentec71493b993b7a63f30bc0983603da19e9c0d22d (diff)
downloadphp-git-49a7bcd60b05fe225bb1513df9fcde11bbf649b3.tar.gz
use safe_realloc
Diffstat (limited to 'ext/sybase_ct/php_sybase_ct.c')
-rw-r--r--ext/sybase_ct/php_sybase_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c
index 10358c96c4..581f4f44fa 100644
--- a/ext/sybase_ct/php_sybase_ct.c
+++ b/ext/sybase_ct/php_sybase_ct.c
@@ -1138,7 +1138,7 @@ static int php_sybase_fetch_result_row (sybase_result *result, int numrows)
result->num_rows++;
i= result->store ? result->num_rows- 1 : 0;
if (i >= result->blocks_initialized*SYBASE_ROWS_BLOCK) {
- result->data = (zval **) erealloc(result->data, sizeof(zval *)*SYBASE_ROWS_BLOCK*(++result->blocks_initialized));
+ result->data = (zval **) safe_erealloc(result->data, SYBASE_ROWS_BLOCK*(++result->blocks_initialized), sizeof(zval *), 0);
}
if (result->store || 1 == result->num_rows) {
result->data[i] = (zval *) safe_emalloc(sizeof(zval), result->num_fields, 0);