summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-25 14:53:41 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-25 14:53:41 -0500
commit388a3f00983a8135b9b5c09ecdc55411898318c1 (patch)
tree591b633d31ac4ca06657e6cda3e9ddd9a98e3449 /libgps_core.c
parent5f4a2717737a4c8c5a94ca70f47893db83a7cc30 (diff)
downloadgpsd-388a3f00983a8135b9b5c09ecdc55411898318c1.tar.gz
Fix typos pointed out in Berlios tracker bug #17858.
All regression tests pass.
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c
index c47f5155..e9890fe5 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -682,7 +682,7 @@ int gps_stream(struct gps_data_t *gpsdata, unsigned int flags,
/*@-nullpass@*//* shouldn't be needed, splint has a bug */
if (flags & WATCH_DEVICE)
(void)snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
- "\"device\":%s,", (char *)d);
+ "\"device\":\"%s\",", (char *)d);
/*@+nullpass@*/
if (buf[strlen(buf) - 1] == ',')
buf[strlen(buf) - 1] = '\0';