diff options
author | Anatol Belski <ab@php.net> | 2013-07-16 00:14:05 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2013-07-16 00:14:05 +0200 |
commit | bcb39d9c6a0b0a16c9bda5a661a0897e96de09a5 (patch) | |
tree | 2e42ecceea98ea58d01ac28ac98503695c01a82a /ext/session | |
parent | 9561e598a0b0abfa6f41550830791a5350a1f837 (diff) | |
download | php-git-bcb39d9c6a0b0a16c9bda5a661a0897e96de09a5.tar.gz |
Fixed typo ensuring header str is \0 terminated
This was obviously intended to send an empty header if
php_gmtime_r() fails. Currently it could send garbage.
Diffstat (limited to 'ext/session')
-rw-r--r-- | ext/session/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 3879edcce6..5af3ef2780 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1052,7 +1052,7 @@ static inline void strcpy_gmt(char *ubuf, time_t *when) /* {{{ */ res = php_gmtime_r(when, &tm); if (!res) { - buf[0] = '\0'; + ubuf[0] = '\0'; return; } |