summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2012-07-31 19:07:37 +0200
committerKarel Zak2012-07-31 19:07:37 +0200
commit7e6e9c701866e1588852b8ce000290ca1ca54d4c (patch)
treef5026c59a78700da9f80f171af58fcf042e6f633
parenttests: add layout info to dos mode test (diff)
downloadkernel-qcow2-util-linux-7e6e9c701866e1588852b8ce000290ca1ca54d4c.tar.gz
kernel-qcow2-util-linux-7e6e9c701866e1588852b8ce000290ca1ca54d4c.tar.xz
kernel-qcow2-util-linux-7e6e9c701866e1588852b8ce000290ca1ca54d4c.zip
fdisk: cast before count size
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--fdisks/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index fa202183b..3a16c5f22 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);
}