summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/dblib_stmt.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-12-25 21:41:04 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2006-12-25 21:41:04 (GMT)
commit7efb0a14f435e4ffb7ffc8f502ca07ec1d6872a1 (patch)
tree10139a1c36124c4d47360d48abea996b624979de /ext/pdo_dblib/dblib_stmt.c
parent807a0966a9dcf37614100842d313ee96f5977391 (diff)
downloadphp-7efb0a14f435e4ffb7ffc8f502ca07ec1d6872a1.tar.gz
Use safe_emalloc()
Diffstat (limited to 'ext/pdo_dblib/dblib_stmt.c')
-rw-r--r--ext/pdo_dblib/dblib_stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index d4e77fa..a8f01a5 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -131,7 +131,7 @@ static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
arows = 100;
size = S->ncols * sizeof(pdo_dblib_colval);
- S->rows = emalloc(arows * size);
+ S->rows = safe_emalloc(arows, size, 0);
/* let's fetch all the data */
do {