Permalink
Browse files

One less argument for raisef(); fix #3355

This issue was reported by https://hackerone.com/mg36
  • Loading branch information...
matz committed Dec 21, 2016
1 parent 987daa6 commit 5e3077c00da721ede78c07d2f2e261aded74e7b6
Showing with 2 additions and 1 deletion.
  1. +2 −1 mrbgems/mruby-sprintf/src/sprintf.c
@@ -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));

0 comments on commit 5e3077c

Please sign in to comment.