From 8fe5bc7010498ad36acd3bb81a331dcb640b6100 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 25 Feb 2006 21:32:11 +0000 Subject: [PATCH] MFH - binary safety patch from Moriyoshi --- ext/standard/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/html.c b/ext/standard/html.c index 22441195e4..b1d05fd893 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -884,7 +884,7 @@ PHPAPI char *php_unescape_html_entities(unsigned char *old, int oldlen, int *new unsigned char replacement[15]; int replacement_len; - ret = estrdup(old); + ret = estrndup(old, oldlen); retlen = oldlen; if (!retlen) { goto empty_source; -- 2.50.1