summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-02-21 01:13:44 +0000
committerStanislav Malyshev <stas@php.net>2007-02-21 01:13:44 +0000
commit31a325823ae25684eccd11ca2c05da0965ab44fa (patch)
tree35c04dc528708e16be90dfc39d62d71cf77fe19f /ext/com_dotnet
parenta72041406b293254c54f2f13f916622f2e8d4ed0 (diff)
downloadphp-git-31a325823ae25684eccd11ca2c05da0965ab44fa.tar.gz
Cosmetic fix - safe_emalloc(nmemb, size, offset)
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_olechar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_olechar.c b/ext/com_dotnet/com_olechar.c
index 4e92cdd1af..d9e72ad46f 100644
--- a/ext/com_dotnet/com_olechar.c
+++ b/ext/com_dotnet/com_olechar.c
@@ -45,7 +45,7 @@ PHPAPI OLECHAR *php_com_string_to_olestring(char *string, uint string_len, int c
}
if (string_len > 0) {
- olestring = (OLECHAR*)safe_emalloc(sizeof(OLECHAR), string_len, 0);
+ olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0);
ok = MultiByteToWideChar(codepage, flags, string, string_len, olestring, string_len);
} else {
ok = FALSE;
@@ -75,7 +75,7 @@ PHPAPI char *php_com_olestring_to_string(OLECHAR *olestring, uint *string_len, i
length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL);
if (length) {
- string = (char*)safe_emalloc(sizeof(char), length, 0);
+ string = (char*)safe_emalloc(length, sizeof(char), 0);
length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL);
ok = length > 0;
} else {