From: Denys Vlasenko Date: Wed, 21 Oct 2009 21:28:20 +0000 (+0200) Subject: df: trivial 64-bit fix X-Git-Tag: 1_16_0~345 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a46317b6f34be8575ebf3857c58f9e5a42781a75;p=oweals%2Fbusybox.git df: trivial 64-bit fix Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/df.c b/coreutils/df.c index 624ad94ba..a0e6fe070 100644 --- a/coreutils/df.c +++ b/coreutils/df.c @@ -183,7 +183,7 @@ int df_main(int argc, char **argv) if (dev_len > 20) { printf("%s\n%20s", device, ""); } else { - printf("%s%*s", device, 20 - dev_len, ""); + printf("%s%*s", device, 20 - (int)dev_len, ""); } #else if (printf("\n%-20s" + 1, device) > 20)