df: trivial 64-bit fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 21 Oct 2009 21:28:20 +0000 (23:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 21 Oct 2009 21:28:20 +0000 (23:28 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/df.c

index 624ad94baea121f672c943484a34c668bb21dd74..a0e6fe0700a51e63c294aed3143a98613bf8bf70 100644 (file)
@@ -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)