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 4edcfa9b5..3cd48cfcc 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
| @@ -354,7 +354,7 @@ static char **print_formatted(char *f, char **argv, int *conv_err) | |||
| 354 | /* Add "ll" if integer modifier, then print */ | 354 | /* Add "ll" if integer modifier, then print */ |
| 355 | { | 355 | { |
| 356 | static const char format_chars[] ALIGN1 = "diouxXfeEgGcs"; | 356 | static const char format_chars[] ALIGN1 = "diouxXfeEgGcs"; |
| 357 | char *p = strchr(format_chars, *f); | 357 | char *p = (char*)strchr(format_chars, *f); |
| 358 | /* needed - try "printf %" without it */ | 358 | /* needed - try "printf %" without it */ |
| 359 | if (p == NULL || *f == '\0') { | 359 | if (p == NULL || *f == '\0') { |
| 360 | bb_error_msg("%s: invalid format", direc_start); | 360 | bb_error_msg("%s: invalid format", direc_start); |
