summaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-04-16 09:43:16 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-04-16 09:43:16 -0400
commita48f7b85d096e68919b4eae8eba5607fe35e3c93 (patch)
tree95562c145e4fe3f29e314fc7e01dc2ca5342b875 /json.c
parent51c343c366942b073680b278091355369a126934 (diff)
downloadgpsd-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/json.c b/json.c
index 65b17d85..c1ed524c 100644
--- a/json.c
+++ b/json.c
@@ -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;