diff options
author | Serge A. Zaitsev <devnull@localhost> | 2010-11-22 14:52:26 +0200 |
---|---|---|
committer | Serge A. Zaitsev <devnull@localhost> | 2010-11-22 14:52:26 +0200 |
commit | 8e31e4d2148febcee4ee371eadcab06aa21b83e3 (patch) | |
tree | 725aebb591e01544e50dfe7fcf66e60a6e23d7bb /jsmn.c | |
parent | b91dee9102c090cf7fffa089af48794e5c727c69 (diff) |
jsmn: strings start from the first char after quotes
Diffstat (limited to 'jsmn.c')
-rw-r--r-- | jsmn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |