diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2019-03-14 16:39:28 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2019-03-14 16:39:28 -0400 |
commit | 0433170e9f5a51ceaf098aa0199c1fd2f8001955 (patch) | |
tree | 12c8282441b7357b376f6457ff733ae62203aaea /gpsd_json.c | |
parent | 16df72bbf53c60abedd1464ea72129ffe6082476 (diff) | |
download | gpsd-0433170e9f5a51ceaf098aa0199c1fd2f8001955.tar.gz |
Document an assumption.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 0bb42705..9bc93999 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -149,6 +149,7 @@ void json_tpv_dump(const struct gps_device_t *session, assert(replylen > sizeof(char *)); (void)strlcpy(reply, "{\"class\":\"TPV\",", replylen); if (gpsdata->dev.path[0] != '\0') + /* Note: Assumes /dev paths are always plain ASCII */ str_appendf(reply, replylen, "\"device\":\"%s\",", gpsdata->dev.path); if (STATUS_DGPS_FIX <= gpsdata->status) { /* to save rebuilding all the regressions, skip NO_FIX and FIX */ |