diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-11 19:56:42 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-11 19:58:17 -0700 |
commit | 52aab46cc0c3dca4bcd33d8b1c5e0eb11749ced6 (patch) | |
tree | 78d6668d1a8a3241cd3228bdabb647f8cfcd3a12 /gps.h | |
parent | cf503096d5c268652b11d6cbf73ea087f7f30d7d (diff) | |
download | gpsd-52aab46cc0c3dca4bcd33d8b1c5e0eb11749ced6.tar.gz |
subtype: Make subtype string buffer longer.
The navcom driver could overflow subtype. This is an incompatible
change to the size of devconfig_t. But API version already changed
this dev cycle.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,6 +38,7 @@ extern "C" { * 6.1 - Add navdata_t for more (nmea2000) info. * 7.0 - add gps_fix_t.ecef (February 2018) * changed prototype of gps_read() to add buffer parameters + * increased length of devconfig_t.subtype */ #define GPSD_API_MAJOR_VERSION 7 /* bump on incompatible changes */ #define GPSD_API_MINOR_VERSION 0 /* bump on compatible changes */ @@ -1907,7 +1908,7 @@ struct devconfig_t { #define SEEN_RTCM3 0x04 #define SEEN_AIS 0x08 char driver[64]; - char subtype[64]; + char subtype[96]; /* a buffer to hold data to output to GPS */ char hexdata[HEXDATA_MAX]; double activated; |