summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 08:26:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 08:26:40 +0000
commit0abd06b24486e363c0e9abb036303327c9f0886a (patch)
tree9353565b2a4c5fb6f260abeb11f9209ae8627e97 /sprintf.c
parentf9f39da9ae59ec5a96329a1973148d0fb81562cb (diff)
* 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
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c2
1 files changed, 1 insertions, 1 deletions
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);