cvs: /php3/functions xml.c

From: Date: Sat, 20 Nov 1999 15:55:02 +0000
Subject: cvs: /php3/functions xml.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-12823@lists.php.net to get a copy of this message
thies Sat Nov 20 10:55:02 1999 EDT Modified files: /php3/functions xml.c Log: "backport" of "off-by-one" fix Index: php3/functions/xml.c diff -u php3/functions/xml.c:1.28 php3/functions/xml.c:1.29 --- php3/functions/xml.c:1.28 Wed Oct 20 11:14:31 1999 +++ php3/functions/xml.c Sat Nov 20 10:55:01 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xml.c,v 1.28 1999/10/20 15:14:31 thies Exp $ */ +/* $Id: xml.c,v 1.29 1999/11/20 15:55:01 thies Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL # if PHP_31 @@ -829,7 +829,7 @@ /* check if the current tag already has a value - if yes append to that! */ if (_php3_hash_find(parser->ctag->value.ht,"value",sizeof("value"),(void *) &myval) == SUCCESS) { int newlen = myval->value.str.len + decoded_len; - myval->value.str.val = erealloc(myval->value.str.val,newlen); + myval->value.str.val = erealloc(myval->value.str.val,newlen+1); strcpy(myval->value.str.val + myval->value.str.len,decoded_value); myval->value.str.len += decoded_len; efree(decoded_value);

« previous php.dev (#12823) next »