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 379c00cc6..0c2502f1b 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -419,7 +419,7 @@ static char **print_formatted(char *f, char **argv, int *conv_err)
419 /* Add "ll" if integer modifier, then print */ 419 /* Add "ll" if integer modifier, then print */
420 { 420 {
421 static const char format_chars[] ALIGN1 = "diouxXfeEgGcs"; 421 static const char format_chars[] ALIGN1 = "diouxXfeEgGcs";
422 char *p = strchr(format_chars, *f); 422 char *p = (char*)strchr(format_chars, *f);
423 /* needed - try "printf %" without it */ 423 /* needed - try "printf %" without it */
424 if (p == NULL || *f == '\0') { 424 if (p == NULL || *f == '\0') {
425 bb_error_msg("%s: invalid format", direc_start); 425 bb_error_msg("%s: invalid format", direc_start);