From ae40277ca08ad85674fd431a227735299c710f04 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 28 Sep 2014 00:36:30 -0400 Subject: [PATCH] More reynch with microjson. All regression tests pass. --- mjson.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mjson.c b/mjson.c index 68d04ab..5157707 100644 --- a/mjson.c +++ b/mjson.c @@ -721,6 +721,8 @@ int json_read_array(const char *cp, const struct json_array_t *arr, } } json_debug_trace((1, "Too many elements in array.\n")); + if (end != NULL) + *end = cp; return JSON_ERR_SUBTOOLONG; breakout: if (arr->count != NULL) -- 2.43.0