summaryrefslogtreecommitdiff
path: root/ext/sqlite
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-03-06 02:17:13 +0000
committerStanislav Malyshev <stas@php.net>2007-03-06 02:17:13 +0000
commit896abc5e34d905879558f85ec93887154c3cdd95 (patch)
treee6e8d934f91bc0bee1cbf36fe228d6640d1d7671 /ext/sqlite
parent49a7bcd60b05fe225bb1513df9fcde11bbf649b3 (diff)
downloadphp-git-896abc5e34d905879558f85ec93887154c3cdd95.tar.gz
use safe_realloc
Diffstat (limited to 'ext/sqlite')
-rw-r--r--ext/sqlite/sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index 35eb656628..27922020b1 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -1465,7 +1465,7 @@ next_row:
/* add the row to our collection */
if (rres->nrows + 1 >= rres->alloc_rows) {
rres->alloc_rows = rres->alloc_rows ? rres->alloc_rows * 2 : 16;
- rres->table = erealloc(rres->table, rres->alloc_rows * rres->ncolumns * sizeof(char *));
+ rres->table = safe_erealloc(rres->table, rres->alloc_rows, rres->ncolumns*sizeof(char *), 0);
}
base = rres->nrows * rres->ncolumns;
for (i = 0; i < rres->ncolumns; i++) {