summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-03-18 02:16:35 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-03-18 02:16:35 +0000
commitd0a480157966e0bc7579eb8963959f320f6a0ea4 (patch)
tree7d7d2524dbf121b2a53c15015f68f5d8d634d386 /ext/com_dotnet
parent5442d722c3b36cfc96a8baf82af8891885b7747f (diff)
downloadphp-git-d0a480157966e0bc7579eb8963959f320f6a0ea4.tar.gz
s/emalloc/safe_emalloc/ where appropriate.
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_typeinfo.c2
-rw-r--r--ext/com_dotnet/com_wrapper.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c
index 98c0a2e843..ed521d1233 100644
--- a/ext/com_dotnet/com_typeinfo.c
+++ b/ext/com_dotnet/com_typeinfo.c
@@ -489,7 +489,7 @@ int php_com_process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int pri
unsigned int funcdesclen, cnames = 0;
BSTR *names;
- names = (BSTR*)emalloc((func->cParams + 1) * sizeof(BSTR));
+ names = (BSTR*)safe_emalloc((func->cParams + 1), sizeof(BSTR), 0);
ITypeInfo_GetNames(typeinfo, func->memid, names, func->cParams + 1, &cnames);
/* first element is the function name */
diff --git a/ext/com_dotnet/com_wrapper.c b/ext/com_dotnet/com_wrapper.c
index fc87f890ce..0ca3247a45 100644
--- a/ext/com_dotnet/com_wrapper.c
+++ b/ext/com_dotnet/com_wrapper.c
@@ -272,7 +272,7 @@ static HRESULT STDMETHODCALLTYPE disp_invokeex(
/* convert args into zvals.
* Args are in reverse order */
- params = (zval ***)emalloc(sizeof(zval **) * pdp->cArgs);
+ params = (zval ***)safe_emalloc(sizeof(zval **), pdp->cArgs, 0);
for (i = 0; i < pdp->cArgs; i++) {
VARIANT *arg;
zval *zarg;