From: Harlan Stenn Date: Sun, 17 Aug 2008 02:42:08 +0000 (-0400) Subject: [BUG 1051] Month off by one in leap second message written to clockstats X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25ee1fdf926509fa35477f93bd9ab18c9abb7da2;p=thirdparty%2Fntp.git [BUG 1051] Month off by one in leap second message written to clockstats bk: 48a79000USqFLUorclSQLw3owQ41KA --- diff --git a/ChangeLog b/ChangeLog index e51b7f287d..2d256b1281 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ --- +* [BUG 1051] Month off by one in leap second message written to clockstats + file fixed. * [Bug 450] Windows only: Under original Windows NT we must not discard the wildcard socket to workaround a bug in NT's getsockname(). * [Bug 1038] Built-in getpass() function also prompts for password if diff --git a/ntpd/refclock_oncore.c b/ntpd/refclock_oncore.c index f335208f23..e1d23a9918 100644 --- a/ntpd/refclock_oncore.c +++ b/ntpd/refclock_oncore.c @@ -2916,7 +2916,7 @@ oncore_msg_Gj( if (dt) { sprintf(Msg, "ONCORE[%d]: Leap second (%d) scheduled for %d%s%d at %d:%d:%d", instance->unit, - dt, buf[9], Month[buf[8]], 256*buf[6]+buf[7], + dt, buf[9], Month[buf[8]-1], 256*buf[6]+buf[7], buf[15], buf[16], buf[17]); record_clock_stats(&(instance->peer->srcadr), Msg); }