From 6b8b2c92dfbdbe791123f3197d4ceec3b0f57a4f Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Sat, 12 Jan 2019 18:46:46 -0800 Subject: driver_sirf: Update somment on version message contents. --- driver_sirf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'driver_sirf.c') 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 { -- cgit v1.2.1