diff options
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r-- | coreutils/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c index cc26ecd03..da129f909 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -378,7 +378,7 @@ static char **print_formatted(char *f, char **argv, int *conv_err) | |||
378 | } | 378 | } |
379 | break; | 379 | break; |
380 | } | 380 | } |
381 | if (*f && strchr("-+ #", *f)) { | 381 | while (*f && strchr("-+ #0", *f)) { |
382 | ++f; | 382 | ++f; |
383 | ++direc_length; | 383 | ++direc_length; |
384 | } | 384 | } |