From 0abd06b24486e363c0e9abb036303327c9f0886a Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 7 Jun 2005 08:26:40 +0000 Subject: * sprintf.c (rb_f_sprintf): raise exception on debug mode (-d), not verbose mode (-w/-w). [ruby-core:05123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sprintf.c') diff --git a/sprintf.c b/sprintf.c index e86f3c7fb9..acfbf64d54 100644 --- a/sprintf.c +++ b/sprintf.c @@ -774,7 +774,7 @@ rb_f_sprintf(argc, argv) /* XXX - We cannot validiate the number of arguments because * the format string may contain `n$'-style argument selector. */ - if (RTEST(ruby_verbose) && posarg >= 0 && nextarg < argc) { + if (RTEST(ruby_debug) && posarg >= 0 && nextarg < argc) { rb_raise(rb_eArgError, "too many arguments for format string"); } rb_str_resize(result, blen); -- cgit v1.2.3