diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-03-18 02:16:35 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-03-18 02:16:35 +0000 |
commit | d0a480157966e0bc7579eb8963959f320f6a0ea4 (patch) | |
tree | 7d7d2524dbf121b2a53c15015f68f5d8d634d386 /ext/com_dotnet | |
parent | 5442d722c3b36cfc96a8baf82af8891885b7747f (diff) | |
download | php-git-d0a480157966e0bc7579eb8963959f320f6a0ea4.tar.gz |
s/emalloc/safe_emalloc/ where appropriate.
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r-- | ext/com_dotnet/com_typeinfo.c | 2 | ||||
-rw-r--r-- | ext/com_dotnet/com_wrapper.c | 2 |
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; |