# HG changeset patch # User Matt Johnston # Date 1302183206 0 # Node ID b5cc8878d5eca3328b248dccf9065a2cc456928a # Parent 81def6b732c72a720dc531f4d8d1ba2839e68157 Properly fix the bug found years ago by Klocwork, refound again. diff -r 81def6b732c7 -r b5cc8878d5ec svr-session.c --- 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);