summaryrefslogtreecommitdiff
path: root/ext/standard/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r--ext/standard/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 402b3aaac5..8a9da90ec4 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -1277,7 +1277,7 @@ PHPAPI zend_string *php_escape_html_entities_ex(unsigned char *old, size_t oldle
* In HTML5, entities may take up to 33 bytes */
if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */
//??? replaced = safe_erealloc(replaced, maxlen , 1, 128 + 1);
- replaced = STR_EREALLOC(replaced, maxlen + 128);
+ replaced = STR_REALLOC(replaced, maxlen + 128, 0);
maxlen += 128;
}
@@ -1410,7 +1410,7 @@ encode_amp:
if (maxlen - len < ent_len + 2 /* & and ; */) {
/* ent_len < oldlen, which is certainly <= SIZE_MAX/2 */
//??? replaced = safe_erealloc(replaced, maxlen, 1, ent_len + 128 + 1);
- replaced = STR_EREALLOC(replaced, maxlen + ent_len + 128);
+ replaced = STR_REALLOC(replaced, maxlen + ent_len + 128, 0);
maxlen += ent_len + 128;
}
replaced->val[len++] = '&';