]> granicus.if.org Git - php/commitdiff
Oops..
authorMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 8 Oct 2003 01:51:32 +0000 (01:51 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 8 Oct 2003 01:51:32 +0000 (01:51 +0000)
ext/standard/var.c

index 3f64465bd1eaddfc5c6f13366b4b9c006269626b..08b4e8b6cb1ceea84a1de6917825d020e3946a0b 100644 (file)
@@ -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);
        }