From fb1dcc71de39e6dd5c11b8bc4288ec5e618fa946 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 17 Oct 2024 12:16:40 +0200 Subject: Squashed 'dependencies/jsmn/' changes from 1aa2e8f8..25647e69 25647e69 Fix position of a comment in string parsing git-subtree-dir: dependencies/jsmn git-subtree-split: 25647e692c7906b96ffd2b05ca54c097948e879c --- jsmn.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jsmn.h') diff --git a/jsmn.h b/jsmn.h index 41219b7dd..8ac14c1bd 100644 --- a/jsmn.h +++ b/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]; -- cgit v1.2.3