summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--upb/json/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/parser.c b/upb/json/parser.c
index 1662f1a..f16af48 100644
--- a/upb/json/parser.c
+++ b/upb/json/parser.c
@@ -1527,7 +1527,7 @@ _again:
#line 1270 "upb/json/parser.rl"
if (p != pe) {
- upb_status_seterrf(&parser->status, "Parse error at '%.*s'\n", p, pe - p);
+ upb_status_seterrf(&parser->status, "Parse error at '%.*s'\n", pe - p, p);
upb_env_reporterror(parser->env, &parser->status);
} else {
capture_suspend(parser, &p);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback