cvs: php4 /ext/session session.c

From: Date: Fri, 03 Aug 2001 10:39:48 +0000
Subject: cvs: php4 /ext/session session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6508@lists.php.net to get a copy of this message
sas Fri Aug 3 06:39:48 2001 EDT Modified files: /php4/ext/session session.c Log: Pass on nul'ified data Index: php4/ext/session/session.c diff -u php4/ext/session/session.c:1.226 php4/ext/session/session.c:1.227 --- php4/ext/session/session.c:1.226 Fri Aug 3 04:51:53 2001 +++ php4/ext/session/session.c Fri Aug 3 06:39:48 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.226 2001/08/03 08:51:53 sas Exp $ */ +/* $Id: session.c,v 1.227 2001/08/03 10:39:48 sas Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -296,6 +296,8 @@ smart_str_appendc(&buf, (unsigned char) (key_length & PS_BIN_UNDEF)); smart_str_appendl(&buf, key, key_length); ); + + smart_str_0(&buf); if (newlen) *newlen = buf.len; *newstr = buf.c; @@ -363,6 +365,8 @@ smart_str_appendl(&buf, key, key_length); smart_str_appendc(&buf, PS_DELIMITER); ); + + smart_str_0(&buf); if (newlen) *newlen = buf.len; *newstr = buf.c;

« previous php.cvs (#6508) next »