summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-14 12:15:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-14 12:15:01 -0400
commit5b6ac64da0e31cb4422c9989a3e38adf6e04d2ef (patch)
tree54ca87b67a156c8e87228e13a7ea88a8faadaf8c /gpsd_json.c
parent83936273c9b0ee2971076f16ce3825c8db8d2843 (diff)
downloadgpsd-5b6ac64da0e31cb4422c9989a3e38adf6e04d2ef.tar.gz
Eliminate a potential buffer overrun.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c2
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",