summaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
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;