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 /libgps_core.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 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 2 |
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'; |