Commits

Serge A. Zaitsev  committed 2ef8c91

jsmn: strings start from the first char after quotes

  • Participants
  • Parent commits 3b8c023

Comments (0)

Files changed (1)

 		/* 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;
 		}