summaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-09-28 08:48:32 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-09-28 08:48:32 -0400
commitfcbba18745a3f2ead96c032f778237d82895810f (patch)
tree370e0eda82496a11844454bb944f6810acf3e02d /json.c
parent1dc4b36b9d2026ae2eb9f856b0c77734d6768c5b (diff)
downloadgpsd-fcbba18745a3f2ead96c032f778237d82895810f.tar.gz
Note for anyone wo might want to re-use this.
Diffstat (limited to 'json.c')
-rw-r--r--json.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/json.c b/json.c
index bad17507..9bccd7ad 100644
--- a/json.c
+++ b/json.c
@@ -53,6 +53,10 @@ If you initialize the offset fields with the correct offsetof calls,
everything will work. Strings are supported but all string storage
has to be inline in the struct.
+NOTE
+ This code has been spun out, packaged, and documented as a
+reusable module; search for "microjson".
+
PERMISSIONS
This file is Copyright (c) 2010 by the GPSD project
BSD terms apply: see the file COPYING in the distribution root for details.
@@ -409,7 +413,7 @@ static int json_internal_read_object(const char *cp,
--cp;
} else if (pval > valbuf + JSON_VAL_MAX - 1) {
json_debug_trace((1, "Token value too long.\n"));
- /* don't update end here, leave at start of value token */
+ /* don't update end here, leave at value start */
return JSON_ERR_TOKLONG;
} else
*pval++ = *cp;