From: Eric S. Raymond Date: Sun, 28 Sep 2014 04:36:30 +0000 (-0400) Subject: More reynch with microjson. All regression tests pass. X-Git-Tag: 1.3~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=ae40277ca08ad85674fd431a227735299c710f04;p=microjson.git More reynch with microjson. All regression tests pass. --- 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)