summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-30 15:36:03 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-30 15:36:03 -0500
commitcbcdf0c060d26d05f7fb5885592a40b4746f7f22 (patch)
tree97275d5da083d0cd4883b9c0df3f467356de2cc5 /gpsd_json.c
parent7de7d9791e85a5a1b2895c111e00a61f3fad76a0 (diff)
downloadgpsd-cbcdf0c060d26d05f7fb5885592a40b4746f7f22.tar.gz
Fix a formatting error in AIS JSON generation (client library get it right).
Required one test rebuild.
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 d53e6ce3..9962a809 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -1616,7 +1616,7 @@ void json_aivdm_dump(const struct ais_t *ais,
"%.1f", ais->type1.speed / 10.0);
str_appendf(buf, buflen,
- "\"status\":\"%u\",\"status_text\":\"%s\","
+ "\"status\":%u,\"status_text\":\"%s\","
"\"turn\":%s,\"speed\":%s,"
"\"accuracy\":%s,\"lon\":%.4f,\"lat\":%.4f,"
"\"course\":%.1f,\"heading\":%u,\"second\":%u,"