]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug report and initial patch from Norikatsu Shigemura <nork@freebsd.org>.
authorHarlan Stenn <stenn@ntp.org>
Wed, 10 Jul 2002 19:36:34 +0000 (15:36 -0400)
committerHarlan Stenn <stenn@ntp.org>
Wed, 10 Jul 2002 19:36:34 +0000 (15:36 -0400)
Actual (more portable) patch from Akinori MUSHA <knu@idaemons.org>.

bk: 3d2c8cc2MI1UL49PJm6lTuSeB8j0Lg

ntpd/refclock_jjy.c

index 18de93a3bfecf81b53e7f4d877e3a5337b23c79a..dba6070ef40c0cee88f495dbc8f3c6af060628ae 100644 (file)
@@ -701,7 +701,7 @@ jjy_poll_cdex_jst2000 ( int unit, struct peer *peer )
         * Send "<ENQ>1J<ETX>" command
         */
 
-       if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4  ) {
+       if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4  ) {
                refclock_report ( peer, CEVNT_FAULT ) ;
        }