From: Harlan Stenn Date: Wed, 10 Sep 2014 09:48:50 +0000 (+0000) Subject: [Bug 2654] refclock_true.c doesn't identify the Mk III X-Git-Tag: NTP_4_2_7P475~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a817a42c69b532e6b85dc2033aeb2c3e045c4cc3;p=thirdparty%2Fntp.git [Bug 2654] refclock_true.c doesn't identify the Mk III bk: 54101e82kxtWX-ltMftw_2uA7Pk2Pw --- diff --git a/ChangeLog b/ChangeLog index 510a6d406..1e60f8479 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2654] refclock_true.c doesn't identify the Mk III. (4.2.7p474) 2014/09/10 Released by Harlan Stenn * [Bug 2536] ntpd sandboxing support (libseccomp2) cleanup. * [Bug 2649] Clean up html/ page installation. diff --git a/ntpd/refclock_true.c b/ntpd/refclock_true.c index 45fea28bf..36ade81c7 100644 --- a/ntpd/refclock_true.c +++ b/ntpd/refclock_true.c @@ -488,7 +488,7 @@ true_receive( * Timecode: " TRUETIME Mk III" or " TRUETIME XL" * (from a TM/TMD/XL clock during initialization.) */ - if (strcmp(pp->a_lastcode, " TRUETIME Mk III") == 0 || + if (strncmp(pp->a_lastcode, " TRUETIME Mk III ", 17) == 0 || strncmp(pp->a_lastcode, " TRUETIME XL", 12) == 0) { true_doevent(peer, e_F18); NLOG(NLOG_CLOCKSTATUS) {