diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-14 12:15:01 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-14 12:15:01 -0400 |
commit | 5b6ac64da0e31cb4422c9989a3e38adf6e04d2ef (patch) | |
tree | 54ca87b67a156c8e87228e13a7ea88a8faadaf8c /gpsd_json.c | |
parent | 83936273c9b0ee2971076f16ce3825c8db8d2843 (diff) | |
download | gpsd-5b6ac64da0e31cb4422c9989a3e38adf6e04d2ef.tar.gz |
Eliminate a potential buffer overrun.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 86479346..0f471999 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -1526,7 +1526,7 @@ void json_aivdm_dump(const struct ais_t *ais, "Reserved for future use", }; -#define STATIONTYPE_DISPLAY(n) (((n) < (unsigned int)NITEMS(ship_type_legends)) ? station_type_legends[n] : "INVALID STATION TYPE") +#define STATIONTYPE_DISPLAY(n) (((n) < (unsigned int)NITEMS(station_type_legends)) ? station_type_legends[n] : "INVALID STATION TYPE") static const char *navaid_type_legends[] = { "Unspecified", |