From: Karel Zak Date: Tue, 31 Jul 2012 17:07:37 +0000 (+0200) Subject: fdisk: cast before count size X-Git-Tag: v2.22-rc2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6e9c701866e1588852b8ce000290ca1ca54d4c;p=thirdparty%2Futil-linux.git fdisk: cast before count size Signed-off-by: Karel Zak --- diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index fa202183be..3a16c5f220 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -1324,7 +1324,7 @@ void print_partition_size(struct fdisk_context *cxt, int num, sector_t start, sector_t stop, int sysid) { char *str = size_to_human_string(SIZE_SUFFIX_3LETTER | SIZE_SUFFIX_SPACE, - (stop - start + 1) * cxt->sector_size); + (uint64_t)(stop - start + 1) * cxt->sector_size); printf(_("Partition %d of type %s and of size %s is set\n"), num, partition_type(sysid), str); free(str); }