diff options
author | Gary E. Miller <gem@rellim.com> | 2018-07-14 12:17:35 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-07-14 12:17:35 -0700 |
commit | 6bba8b329fc7687b15863d30471d5af402467802 (patch) | |
tree | 10975c312ee76bf58c4f66b6997e07c4f5e5e4c3 /lcdgps.c | |
parent | 692427a17aeb54d69826def759cc1f1da605ba33 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |