cvs: php-src /ext/standard var.c

From: Date: Wed, 08 Oct 2003 01:51:33 +0000
Subject: cvs: php-src /ext/standard var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24091@lists.php.net to get a copy of this message
moriyoshi Tue Oct 7 21:51:33 2003 EDT Modified files: /php-src/ext/standard var.c Log: Oops.. Index: php-src/ext/standard/var.c diff -u php-src/ext/standard/var.c:1.173 php-src/ext/standard/var.c:1.174 --- php-src/ext/standard/var.c:1.173 Tue Oct 7 21:49:31 2003 +++ php-src/ext/standard/var.c Tue Oct 7 21:51:32 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: var.c,v 1.173 2003/10/08 01:49:31 moriyoshi Exp $ */ +/* $Id: var.c,v 1.174 2003/10/08 01:51:32 moriyoshi Exp $ */ /* {{{ includes @@ -273,7 +273,7 @@ } 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); }

« previous php.cvs (#24091) next »