diff options
Diffstat (limited to 'jsmn.h')
-rw-r--r-- | jsmn.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -196,10 +196,10 @@ static int jsmn_parse_string(jsmn_parser *parser, const char *js, jsmntok_t *token; int start = parser->pos; - - parser->pos++; - + /* Skip starting quote */ + parser->pos++; + for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { char c = js[parser->pos]; |