Mercurial > dropbear
changeset 618:b5cc8878d5ec
Properly fix the bug found years ago by Klocwork, refound again.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 07 Apr 2011 13:33:26 +0000 |
parents | 81def6b732c7 |
children | 35d27c1d0ee7 |
files | svr-session.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/svr-session.c Thu Apr 07 13:25:00 2011 +0000 +++ b/svr-session.c Thu Apr 07 13:33:26 2011 +0000 @@ -205,7 +205,7 @@ local_tm = localtime(×ec); if (local_tm == NULL || strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", - localtime(×ec)) == 0) + local_tm) == 0) { /* upon failure, just print the epoch-seconds time. */ snprintf(datestr, sizeof(datestr), "%d", (int)timesec);