summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printf.c b/src/printf.c
index 5be95cfb1..f0825e1e0 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -576,7 +576,7 @@ main (int argc, char **argv)
++argv;
}
- if (argc == 1)
+ if (argc <= 1)
{
fprintf (stderr, _("Usage: %s format [argument...]\n"), program_name);
exit (EXIT_FAILURE);