aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r--coreutils/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c
index dd94c8ade..2e672d15f 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -313,7 +313,7 @@ static char **print_formatted(char *f, char **argv, int *conv_err)
313 } 313 }
314 break; 314 break;
315 } 315 }
316 if (*f && strchr("-+ #", *f)) { 316 while (*f && strchr("-+ #0", *f)) {
317 ++f; 317 ++f;
318 ++direc_length; 318 ++direc_length;
319 } 319 }