aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-02-24 18:02:20 +0100
committergrunfink <grunfink@comam.es>2026-02-24 18:02:20 +0100
commit6e756b22c41b2fd552c11e86345df9308e92ed2b (patch)
treebdbec6cd8e1ccc01601ec9e989174d0a867d473a
parenta3da6a3fa2c27051c91bde9b5b57e5233fb87fc2 (diff)
Fixed another new error in the JSON parser.
-rw-r--r--xs_json.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs_json.h b/xs_json.h
index e1c05f4..6f42eab 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -300,14 +300,13 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
else {
char cc = c;
v = xs_insert_m(v, offset, &cc, 1);
+ offset++;
}
if (!xs_is_string(v)) {
*t = JS_ERROR;
break;
}
-
- offset++;
}
}