diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-25 14:53:41 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-25 14:53:41 -0500 |
commit | 388a3f00983a8135b9b5c09ecdc55411898318c1 (patch) | |
tree | 591b633d31ac4ca06657e6cda3e9ddd9a98e3449 /gpsd_json.c | |
parent | 5f4a2717737a4c8c5a94ca70f47893db83a7cc30 (diff) | |
download | gpsd-388a3f00983a8135b9b5c09ecdc55411898318c1.tar.gz |
Fix typos pointed out in Berlios tracker bug #17858.
All regression tests pass.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index d949970f..d6fda692 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -350,7 +350,7 @@ void json_watch_dump(const struct policy_t *ccp, ccp->timing ? "true" : "false"); if (ccp->devpath[0] != '\0') (void)snprintf(reply + strlen(reply), replylen - strlen(reply), - "\"device\":%s,", ccp->devpath); + "\"device\":\"%s\",", ccp->devpath); if (reply[strlen(reply) - 1] == ',') reply[strlen(reply) - 1] = '\0'; (void)strlcat(reply, "}\r\n", replylen - strlen(reply)); |