summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-07-14 12:17:35 -0700
committerGary E. Miller <gem@rellim.com>2018-07-14 12:17:35 -0700
commit6bba8b329fc7687b15863d30471d5af402467802 (patch)
tree10975c312ee76bf58c4f66b6997e07c4f5e5e4c3 /lcdgps.c
parent692427a17aeb54d69826def759cc1f1da605ba33 (diff)
downloadgpsd-6bba8b329fc7687b15863d30471d5af402467802.tar.gz
gps_read(): fix some nasty buffer overruns and corruptions.
Now pass an optional message buffer to gps_read(). Finally the JSON display in cgps works. Thanks to Virgin Orbit for their support fixing this bug.
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcdgps.c b/lcdgps.c
index 52730c43..74874723 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -408,7 +408,7 @@ int main(int argc, char *argv[])
(void)fprintf(stderr, "lcdgps: error while waiting\n");
exit(EXIT_FAILURE);
} else {
- (void)gps_read(&gpsdata);
+ (void)gps_read(&gpsdata, NULL, 0);
update_lcd(&gpsdata);
}