diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-28 08:48:32 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-28 08:48:32 -0400 |
commit | fcbba18745a3f2ead96c032f778237d82895810f (patch) | |
tree | 370e0eda82496a11844454bb944f6810acf3e02d /json.c | |
parent | 1dc4b36b9d2026ae2eb9f856b0c77734d6768c5b (diff) | |
download | gpsd-fcbba18745a3f2ead96c032f778237d82895810f.tar.gz |
Note for anyone wo might want to re-use this.
Diffstat (limited to 'json.c')
-rw-r--r-- | json.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |