summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
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);