Skip to content

Commit

Permalink
One less argument for raisef(); fix #3355
Browse files Browse the repository at this point in the history
This issue was reported by https://hackerone.com/mg36
  • Loading branch information
matz committed Dec 21, 2016
1 parent 987daa6 commit 5e3077c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrbgems/mruby-sprintf/src/sprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ static void
check_pos_arg(mrb_state *mrb, int posarg, int n)
{
if (posarg > 0) {
mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after unnumbered(%S)", mrb_fixnum_value(n));
mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after unnumbered(%S)",
mrb_fixnum_value(n), mrb_fixnum_value(posarg));
}
if (posarg == -2) {
mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%S) after named", mrb_fixnum_value(n));
Expand Down

0 comments on commit 5e3077c

Please sign in to comment.