diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-08 15:53:30 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-08 15:53:30 -0800 |
commit | 04cb989ee1c2eb579d39e603c9965faa0ab6bbac (patch) | |
tree | ba3a48c4d4e4288b55823bfcd086dfff24f04b0f /gpsd_json.c | |
parent | 92a019f96c4cf836c5a9c99c4b305a8c29f9bf6b (diff) | |
download | gpsd-04cb989ee1c2eb579d39e603c9965faa0ab6bbac.tar.gz |
gpsd_json: Fix stupid mistake.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 22fb6f32..86079040 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -737,9 +737,8 @@ void json_raw_dump(const struct gps_data_t *gpsdata, if (gpsdata->dev.path[0] != '\0') str_appendf(reply, replylen, "\"device\":\"%s\",", gpsdata->dev.path); - str_appendf(reply, "\"time\":%ld,\"nsec\":%9ld,\"rawdata\":[", - replylen, (long)gpsdata->raw.mtime.tv_sec, - gpsdata->raw.mtime.tv_nsec); + str_appendf(reply, replylen, "\"time\":%ld,\"nsec\":%9ld,\"rawdata\":[", + (long)gpsdata->raw.mtime.tv_sec, gpsdata->raw.mtime.tv_nsec); for (i = 0; i < MAXCHANNELS; i++) { bool comma = false; |