summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-08 10:14:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-08 10:14:35 +0000
commit529bc6166cb3e6083678c278d8a871e803420804 (patch)
tree386375e77892e9e6d16f579c2bdcbdf55152da23 /sprintf.c
parentc5c55b1f9fc68a99aeea1336f0a648881846647c (diff)
1.2.4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@412 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 9a05d78335..3331fab03a 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -585,7 +585,7 @@ f_sprintf(argc, argv)
}
sprint_exit:
- if (RTEST(verbose) && argc > 1) {
+ if (RTEST(verbose) && argc > 0) {
ArgError("too many argument for format string");
}
result = str_new(buf, blen);