From 52aab46cc0c3dca4bcd33d8b1c5e0eb11749ced6 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 11 Sep 2018 19:56:42 -0700 Subject: 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. --- gps.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gps.h') diff --git a/gps.h b/gps.h index fce26ea1..e427f5a4 100644 --- a/gps.h +++ b/gps.h @@ -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; -- cgit v1.2.1