diff options
author | Gary E. Miller <gem@rellim.com> | 2019-01-12 18:46:46 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-01-12 18:46:46 -0800 |
commit | 6b8b2c92dfbdbe791123f3197d4ceec3b0f57a4f (patch) | |
tree | ca1dba3ccb1b91464134fe4925dc542307c2ea92 /driver_sirf.c | |
parent | dae08b6eb102d2c6b52a19ac4d2527e7760292e5 (diff) | |
download | gpsd-6b8b2c92dfbdbe791123f3197d4ceec3b0f57a4f.tar.gz |
driver_sirf: Update somment on version message contents.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r-- | driver_sirf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/driver_sirf.c b/driver_sirf.c index 1e268953..b9f9f87a 100644 --- a/driver_sirf.c +++ b/driver_sirf.c @@ -1080,10 +1080,12 @@ static gps_mask_t sirf_msg_swversion(struct gps_device_t *session, return 0; if ((3 < len) && (len == (unsigned int)(buf[1] + buf[2] + 3))) { - /* new style message, Version 4+ */ + /* new style message, Version 4+, max 162 bytes */ (void)strlcpy(session->subtype, (char *)buf + 3, sizeof(session->subtype)); (void)strlcat(session->subtype, ";", sizeof(session->subtype)); + (void)strlcat(session->subtype, (char *)buf + 3 + buf[1], + sizeof(session->subtype)); session->driver.sirf.driverstate |= SIRF_GE_232; fv = 4.0; } else { |