com php-src: Fixed typo ensuring header str is \0 terminated: ext/session/session.c

From: Date: Mon, 15 Jul 2013 22:14:05 +0000
Subject: com php-src: Fixed typo ensuring header str is \0 terminated: ext/session/session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-72668@lists.php.net to get a copy of this message
Commit: bcb39d9c6a0b0a16c9bda5a661a0897e96de09a5 Author: Anatol Belski <ab@php.net> Tue, 16 Jul 2013 00:14:05 +0200 Parents: 9561e598a0b0abfa6f41550830791a5350a1f837 Branches: PHP-5.4 PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bcb39d9c6a0b0a16c9bda5a661a0897e96de09a5 Log: 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. Changed paths: M ext/session/session.c Diff: diff --git a/ext/session/session.c b/ext/session/session.c index 3879edc..5af3ef2 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; }

« previous php.cvs (#72668) next »