diff options
author | Stanislav Malyshev <stas@php.net> | 2007-03-06 02:17:13 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2007-03-06 02:17:13 +0000 |
commit | 896abc5e34d905879558f85ec93887154c3cdd95 (patch) | |
tree | e6e8d934f91bc0bee1cbf36fe228d6640d1d7671 /ext/sqlite/sqlite.c | |
parent | 49a7bcd60b05fe225bb1513df9fcde11bbf649b3 (diff) | |
download | php-git-896abc5e34d905879558f85ec93887154c3cdd95.tar.gz |
use safe_realloc
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 2 |
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++) { |