diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2006-02-25 21:32:11 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2006-02-25 21:32:11 +0000 |
commit | 8fe5bc7010498ad36acd3bb81a331dcb640b6100 (patch) | |
tree | 7aab469892951f1a14cb8b66c1525c9391715687 | |
parent | bf213a2c7b3c1f84aa12fa6436894d4c5303b711 (diff) | |
download | php-git-8fe5bc7010498ad36acd3bb81a331dcb640b6100.tar.gz |
MFH - binary safety patch from Moriyoshi
-rw-r--r-- | ext/standard/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |