From 8e31e4d2148febcee4ee371eadcab06aa21b83e3 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Mon, 22 Nov 2010 14:52:26 +0200 Subject: [PATCH] jsmn: strings start from the first char after quotes --- jsmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsmn.c b/jsmn.c index 8598256..8b87b97 100644 --- a/jsmn.c +++ b/jsmn.c @@ -79,7 +79,7 @@ static int jsmn_parse_string(jsmn_parser *parser) { /* Quote: end of string */ if (c == '\"') { token = jsmn_get_token(parser); - jsmn_fill_token(token, JSON_PRIMITIVE, start, parser->pos); + jsmn_fill_token(token, JSON_PRIMITIVE, start+1, parser->pos); return JSMN_SUCCESS; }