summaryrefslogtreecommitdiff
path: root/www/php4/patches/patch-aq
blob: f173fc82dc2d75a9eeb8e682a4c7960473786fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aq,v 1.1 2006/04/14 13:48:33 cube Exp $

--- ext/standard/html.c.orig	2006-01-01 14:46:57.000000000 +0100
+++ ext/standard/html.c
@@ -793,7 +793,7 @@ PHPAPI char *php_unescape_html_entities(
 	enum entity_charset charset = determine_charset(hint_charset TSRMLS_CC);
 	unsigned char replacement[15];
 	
-	ret = estrdup(old);
+	ret = estrndup(old, oldlen);
 	retlen = oldlen;
 	if (!retlen) {
 		goto empty_source;