com php-src: Fixed fields handling: ext/wddx/wddx.c

From: Date: Mon, 12 May 2014 02:46:19 +0000
Subject: com php-src: Fixed fields handling: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78261@lists.php.net to get a copy of this message
Commit: 618d6e273c1badd69ee46267c21e0ae6e7b907c4 Author: Xinchen Hui <laruence@php.net> Mon, 12 May 2014 10:46:19 +0800 Parents: 8d87e3b841086fa8173b7c6b46c8e75e7c8bd8e2 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=618d6e273c1badd69ee46267c21e0ae6e7b907c4 Log: Fixed fields handling Changed paths: M ext/wddx/wddx.c Diff: diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index f25d71f..ad55652 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -791,14 +791,14 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X while ((p2 = php_memnstr(p1, ",", sizeof(",")-1, endp)) != NULL) { key = estrndup(p1, p2 - p1); array_init(&tmp); - add_assoc_zval_ex(&ent.data, key, p2 - p1 + 1, &tmp); + add_assoc_zval_ex(&ent.data, key, p2 - p1, &tmp); p1 = p2 + sizeof(",")-1; efree(key); } if (p1 <= endp) { array_init(&tmp); - add_assoc_zval_ex(&ent.data, p1, endp - p1 + 1, &tmp); + add_assoc_zval_ex(&ent.data, p1, endp - p1, &tmp); } break;

« previous php.cvs (#78261) next »