diff options
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r-- | coreutils/printf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c index 45d761d1c..d2b715406 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -423,7 +423,15 @@ static char **print_formatted(char *f, char **argv, int *conv_err) | |||
423 | printf(s); | 423 | printf(s); |
424 | return saved_argv; /* causes main() to exit */ | 424 | return saved_argv; /* causes main() to exit */ |
425 | } | 425 | } |
426 | *t++ = bb_process_escape_sequence((const char **)&f); | 426 | *t = bb_process_escape_sequence((const char **)&f); |
427 | if (*t == '\0') { | ||
428 | printf(s); | ||
429 | bb_putchar(*t); | ||
430 | t = s; | ||
431 | } | ||
432 | else { | ||
433 | ++t; | ||
434 | } | ||
427 | f--; | 435 | f--; |
428 | break; | 436 | break; |
429 | default: | 437 | default: |