diff options
Diffstat (limited to 'dependencies/jsmn/jsmn.h')
-rw-r--r-- | dependencies/jsmn/jsmn.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dependencies/jsmn/jsmn.h b/dependencies/jsmn/jsmn.h index 41219b7dd..8ac14c1bd 100644 --- a/dependencies/jsmn/jsmn.h +++ b/dependencies/jsmn/jsmn.h @@ -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]; |