[Git][NTPsec/ntpsec][master] Fix incorrect use of REFIDLEN. Value was right, semantics wrong.

Eric S. Raymond gitlab at mg.gitlab.com
Thu May 12 15:45:17 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
3f65528b by Eric S. Raymond at 2016-05-12T11:45:00-04:00
Fix incorrect use of REFIDLEN.  Value was right, semantics wrong.

- - - - -


1 changed file:

- ntpd/refclock_nmea.c


Changes:

=====================================
ntpd/refclock_nmea.c
=====================================
--- a/ntpd/refclock_nmea.c
+++ b/ntpd/refclock_nmea.c
@@ -972,7 +972,7 @@ nmea_receive(
 		 */
 		rc_date  = parse_weekdata(&gpsw, &rdata, 1, 2, 5)
 		        && parse_date(&date, &rdata, 3, DATE_1_DDMMYY);
-		rc_time  = parse_time(&date, &tofs.tv_nsec, &rdata, REFIDLEN);
+		rc_time  = parse_time(&date, &tofs.tv_nsec, &rdata, 4);
 		pp->leap = parse_qual(&rdata, 11, '0', 1);		
 		rc_date  = rc_date
 		        && gpsfix_century(&date, &gpsw, &up->century_cache);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3f65528be89ae4761bf038b100e6d8aa8c5748f2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160512/593925b3/attachment.html>


More information about the vc mailing list