]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2654] refclock_true.c doesn't identify the Mk III
authorHarlan Stenn <stenn@ntp.org>
Wed, 10 Sep 2014 09:48:50 +0000 (09:48 +0000)
committerHarlan Stenn <stenn@ntp.org>
Wed, 10 Sep 2014 09:48:50 +0000 (09:48 +0000)
bk: 54101e82kxtWX-ltMftw_2uA7Pk2Pw

ChangeLog
ntpd/refclock_true.c

index 510a6d4061c7967a2050e95eeb9fe310b21a6b06..1e60f8479d045f8a8ba8946b909404c68f687646 100644 (file)
--- 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 <stenn@ntp.org>
 * [Bug 2536] ntpd sandboxing support (libseccomp2) cleanup.
 * [Bug 2649] Clean up html/ page installation.
index 45fea28bfef9cc986bfde87339f53bc51fd45311..36ade81c7ba5f074152f097b11f934f03fc07d24 100644 (file)
@@ -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) {