summaryrefslogtreecommitdiff
path: root/driver_proto.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-20 04:56:57 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-20 04:56:57 -0500
commitbcea2a19a631a149839025c42629465e7ba63b9c (patch)
treecf71c60d698bc850b67e8effddfe5378fb708df6 /driver_proto.c
parent07d0ac7220b760dc78eac593f73a508a23bbad71 (diff)
downloadgpsd-bcea2a19a631a149839025c42629465e7ba63b9c.tar.gz
Insert GPS week rollover checks everywhere we rely on GPS time.
All regression tests pass.
Diffstat (limited to 'driver_proto.c')
-rw-r--r--driver_proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_proto.c b/driver_proto.c
index 98cc8a1b..12908a45 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -157,6 +157,7 @@ _proto__msg_utctime(struct gps_device_t *session, unsigned char *buf, size_t dat
t = gpstime_to_unix(gps_week, session->context->gps_tow)
- session->context->leap_seconds;
session->newdata.time = t;
+ gpsd_rollover_check(session, session->newdata.time);
return TIME_IS | ONLINE_IS;
}