diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-08 01:51:32 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-08 01:51:32 +0000 |
| commit | ed40a56c6c609dce28ff85a3d104d281e5dd28b6 (patch) | |
| tree | 42d48c11b47b45d93092ff34bbc3f861de4573cc | |
| parent | f4595d18afdaa54a064bd62c5206fae21bb1cd07 (diff) | |
| download | php-git-ed40a56c6c609dce28ff85a3d104d281e5dd28b6.tar.gz | |
Oops..
| -rw-r--r-- | ext/standard/var.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c index 3f64465bd1..08b4e8b6cb 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -273,7 +273,7 @@ static int php_array_element_export(zval **zv, int num_args, va_list args, zend_ } else { /* string key */ char *key; int key_len; - key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength, &key_len, 0, "'\\", 2 TSRMLS_CC); + key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC); php_printf("%*c'%s' => ", level + 1, ' ', key); efree(key); } |
