summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
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/imap/php_imap.c
parent3652ab6032819e4854ae607fe8084cd129791983 (diff)
downloadphp-git-93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53.tar.gz
emalloc -> safe_emalloc
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r--ext/imap/php_imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 5fff1e4065..c5dc15b6d1 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -1345,7 +1345,7 @@ PHP_FUNCTION(imap_list_full)
}
array_init(return_value);
- delim = emalloc(2 * sizeof(char));
+ delim = safe_emalloc(2, sizeof(char), 0);
cur=IMAPG(imap_folder_objects);
while (cur != NIL) {
MAKE_STD_ZVAL(mboxob);
@@ -1654,7 +1654,7 @@ PHP_FUNCTION(imap_lsub_full)
convert_to_string_ex(ref);
convert_to_string_ex(pat);
- delim = emalloc(2 * sizeof(char));
+ delim = safe_emalloc(2, sizeof(char), 0);
/* set flag for new, improved array of objects list */
IMAPG(folderlist_style) = FLIST_OBJECT;
@@ -3551,7 +3551,7 @@ PHP_FUNCTION(imap_mime_header_decode)
string = Z_STRVAL_PP(str);
end = Z_STRLEN_PP(str);
- charset = (char *) emalloc((end + 1) * 2);
+ charset = (char *) safe_emalloc((end + 1), 2, 0);
text = &charset[end + 1];
while (offset < end) { /* Reached end of the string? */
if ((charset_token = (long)php_memnstr(&string[offset], "=?", 2, string + end))) { /* Is there anything encoded in the string? */