From: Harlan Stenn Date: Wed, 10 Jul 2002 19:36:34 +0000 (-0400) Subject: Bug report and initial patch from Norikatsu Shigemura . X-Git-Tag: NTP_4_1_1C_RC1~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8766b5857bbc15440d5f46462b2a98fe2b09bf5a;p=thirdparty%2Fntp.git Bug report and initial patch from Norikatsu Shigemura . Actual (more portable) patch from Akinori MUSHA . bk: 3d2c8cc2MI1UL49PJm6lTuSeB8j0Lg --- diff --git a/ntpd/refclock_jjy.c b/ntpd/refclock_jjy.c index 18de93a3bf..dba6070ef4 100644 --- a/ntpd/refclock_jjy.c +++ b/ntpd/refclock_jjy.c @@ -701,7 +701,7 @@ jjy_poll_cdex_jst2000 ( int unit, struct peer *peer ) * Send "1J" command */ - if ( write ( pp->io.fd, "\x051J\x03", 4 ) != 4 ) { + if ( write ( pp->io.fd, "\0051J\003", 4 ) != 4 ) { refclock_report ( peer, CEVNT_FAULT ) ; }