summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--upb/json/parser.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/parser.rl b/upb/json/parser.rl
index 943a490..3e1ea94 100644
--- a/upb/json/parser.rl
+++ b/upb/json/parser.rl
@@ -1269,7 +1269,7 @@ size_t parse(void *closure, const void *hd, const char *buf, size_t size,
%% write exec;
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