diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-18 04:44:01 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-18 04:44:01 -0400 |
commit | 7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b (patch) | |
tree | 8a224b5479e288537d51d0f044df7e8cd532b574 /gpsd.c | |
parent | c46e369a26bb693e744206979ee9d8674c27f1da (diff) | |
download | gpsd-7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b.tar.gz |
More cppcheck warning fixups. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1755,7 +1755,7 @@ static void netgnss_autoconnect(struct gps_context_t *context, char *cp = strchr(buf, '#'); if (cp != NULL) *cp = '\0'; - if (sscanf(buf, "%lf %lf %256s", &hold.lat, &hold.lon, hold.server) == + if (sscanf(buf, "%32lf %32lf %256s", &hold.lat, &hold.lon, hold.server) == 3) { hold.dist = earth_distance(lat, lon, hold.lat, hold.lon); tp = NULL; |