From ed40a56c6c609dce28ff85a3d104d281e5dd28b6 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 8 Oct 2003 01:51:32 +0000 Subject: [PATCH] Oops.. --- ext/standard/var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1