cvs: php4 /ext/standard var.c

From: Date: Fri, 03 Aug 2001 09:35:34 +0000
Subject: cvs: php4 /ext/standard var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6505@lists.php.net to get a copy of this message
sas Fri Aug 3 05:35:34 2001 EDT Modified files: /php4/ext/standard var.c Log: NUL-terminate string Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.102 php4/ext/standard/var.c:1.103 --- php4/ext/standard/var.c:1.102 Fri Aug 3 03:25:27 2001 +++ php4/ext/standard/var.c Fri Aug 3 05:35:33 2001 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: var.c,v 1.102 2001/08/03 07:25:27 sas Exp $ */ +/* $Id: var.c,v 1.103 2001/08/03 09:35:33 sas Exp $ */ /* {{{ includes @@ -606,6 +606,7 @@ PHP_VAR_SERIALIZE_INIT(var_hash); php_var_serialize(&buf, struc, &var_hash); PHP_VAR_SERIALIZE_DESTROY(var_hash); + smart_str_0(&buf); RETVAL_STRINGL(buf.c, buf.len, 0); }

« previous php.cvs (#6505) next »