summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-18 21:40:28 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-18 21:40:28 +0000
commit6476cf248078df95580eb0a17fa852cc0b4fddb1 (patch)
tree4695715f88372d7cbcee929b77a9646fdcec5ba8 /gpsdecode.c
parent22474b8a4c37373c6dbfe87940f5a060ac40f27a (diff)
downloadgpsd-6476cf248078df95580eb0a17fa852cc0b4fddb1.tar.gz
End pointer returned by the JSON parser needs to be passed back up...
...so we can handle multiple responses per write.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index 77123400..939bd9e3 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -396,7 +396,7 @@ static void encode(FILE *fpin, bool repack, FILE *fpout)
++lineno;
if (inbuf[0] == '#')
continue;
- status = libgps_json_unpack(inbuf, &gpsdata);
+ status = libgps_json_unpack(inbuf, &gpsdata, NULL);
if (status != 0) {
(void) fprintf(stderr, "gpsdecode: bailing out with status %d (%s) on line %d\n", status, json_error_string(status), lineno);
exit(1);