summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-18 04:44:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-18 04:44:01 -0400
commit7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b (patch)
tree8a224b5479e288537d51d0f044df7e8cd532b574 /gpsd.c
parentc46e369a26bb693e744206979ee9d8674c27f1da (diff)
downloadgpsd-7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b.tar.gz
More cppcheck warning fixups. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 010b8966..64b117b1 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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;