From d6f48a6a3d11bd2acc23897674a9ab4a36ecb50b Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Mon, 28 Mar 2011 13:32:44 +0300 Subject: [PATCH] fixed: issue #1, thanks to m_einman for his patch --- jsmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsmn.c b/jsmn.c index 9907e27..2761ee2 100644 --- a/jsmn.c +++ b/jsmn.c @@ -102,7 +102,7 @@ static int jsmn_parse_string(jsmn_parser *parser) { token = jsmn_get_token(parser); if (token == NULL) return JSMN_ERROR_NOMEM; - jsmn_fill_token(token, JSMN_PRIMITIVE, start+1, parser->pos); + jsmn_fill_token(token, JSMN_STRING, start+1, parser->pos); return JSMN_SUCCESS; }