diff options
| author | Sascha Schumann <sas@php.net> | 2001-08-03 10:39:48 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2001-08-03 10:39:48 +0000 |
| commit | 4a1943c5424c852cd02d54cb535f56bd38e5d858 (patch) | |
| tree | cef45faa02e170fb3aa9cbd134515fc1ca6557b9 | |
| parent | f6ed403fde48991afd66ea5eb93573f99b27e34a (diff) | |
| download | php-git-4a1943c5424c852cd02d54cb535f56bd38e5d858.tar.gz | |
Pass on nul'ified data
| -rw-r--r-- | ext/session/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 6b32d94a86..7fe32677c5 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -296,6 +296,8 @@ PS_SERIALIZER_ENCODE_FUNC(php_binary) 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 @@ PS_SERIALIZER_ENCODE_FUNC(php) 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; |
