summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-12-20 15:42:15 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-12-20 15:42:15 +0000
commitcbdfe53e679e13775ae2e1d8eb8d5ca0e6164aba (patch)
treecb117aec401218a595b0eaa75d399531add38e77 /gpsd_json.c
parent7b1638ac0105f39ae05210d4ff7ca8dd4f3a0ec7 (diff)
downloadgpsd-cbdfe53e679e13775ae2e1d8eb8d5ca0e6164aba.tar.gz
Various AIS corrections turned up by working on xgps's AIS display.
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 f6104271..39598c4a 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -1135,7 +1135,7 @@ void aivdm_json_dump(const struct ais_t *ais, bool scaled, /*@out@*/char *buf, s
case 21: /* Aid to Navigation */
if (scaled) {
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
- "\"aid_type\":%s,\"name\":\"%s\",\"lon\":%.4f,"
+ "\"aid_type\":\"%s\",\"name\":\"%s\",\"lon\":%.4f,"
"\"lat\":%.4f,\"accuracy\":%s,\"to_bow\":%u,"
"\"to_stern\":%u,\"to_port\":%u,"
"\"to_starboard\":%u,\"epfd\":\"%s\","