diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-16 09:43:16 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-16 09:43:16 -0400 |
commit | a48f7b85d096e68919b4eae8eba5607fe35e3c93 (patch) | |
tree | 95562c145e4fe3f29e314fc7e01dc2ca5342b875 /json.c | |
parent | 51c343c366942b073680b278091355369a126934 (diff) | |
download | gpsd-a48f7b85d096e68919b4eae8eba5607fe35e3c93.tar.gz |
Use t_time consistently for timestamps.
All regression tests pass. Livetesting with cgps looks good.
Diffstat (limited to 'json.c')
-rw-r--r-- | json.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -281,6 +281,8 @@ static int json_internal_read_object(const char *cp, maxlen = (int)cursor->len - 1; else if (cursor->type == t_check) maxlen = (int)strlen(cursor->dflt.check); + else if (cursor->type == t_time) + maxlen = JSON_VAL_MAX; else if (cursor->map != NULL) maxlen = (int)sizeof(valbuf) - 1; pval = valbuf; |