summaryrefslogtreecommitdiff
path: root/ext/fbsql
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-12 00:58:52 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-12 00:58:52 +0000
commit93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53 (patch)
tree981e9591cd93532e591400b35b595735a6eee0b7 /ext/fbsql
parent3652ab6032819e4854ae607fe8084cd129791983 (diff)
downloadphp-git-93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53.tar.gz
emalloc -> safe_emalloc
Diffstat (limited to 'ext/fbsql')
-rw-r--r--ext/fbsql/php_fbsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c
index e751e85f21..75dddca485 100644
--- a/ext/fbsql/php_fbsql.c
+++ b/ext/fbsql/php_fbsql.c
@@ -2349,7 +2349,7 @@ void phpfbColumnAsString(PHPFBResult* result, int column, void* data , int* leng
*length = l*2+3+1;
if (value)
{
- char* r = emalloc(l*2+3+1);
+ char* r = safe_emalloc(l, 2, 4);
r[0] = 'X';
r[1] = '\'';
for (i = 0; i < nBits / 8; i++)
@@ -2371,7 +2371,7 @@ void phpfbColumnAsString(PHPFBResult* result, int column, void* data , int* leng
*length = l*2+3+1;
if (value)
{
- char* r = emalloc(l*2+3+1);
+ char* r = safe_emalloc(l, 2, 1);
r[0] = 'B';
r[1] = '\'';
for (i = 0; i < nBits; i++)