diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-12 10:46:19 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-12 10:46:19 +0800 |
commit | 618d6e273c1badd69ee46267c21e0ae6e7b907c4 (patch) | |
tree | 79cd8c5dfc77ce9be41f3f867c8e41c46cfb3c4f /ext | |
parent | 8d87e3b841086fa8173b7c6b46c8e75e7c8bd8e2 (diff) | |
download | php-git-618d6e273c1badd69ee46267c21e0ae6e7b907c4.tar.gz |
Fixed fields handling
Diffstat (limited to 'ext')
-rw-r--r-- | ext/wddx/wddx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index f25d71fb08..ad55652ee2 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; |