From: Theodore Ts'o Date: Sat, 11 Jan 2014 02:56:29 +0000 (-0500) Subject: libblkid: fix integer width issue in probe_fat X-Git-Tag: v1.42.9.wc1~103 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a8307ab8cc3699aa47cd4d9fc176fc2cfde7b0e7;p=tools%2Fe2fsprogs.git libblkid: fix integer width issue in probe_fat Addresses-Coverity-Id: #1049162 Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index b63a509..4b797ab 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -585,8 +585,8 @@ static int probe_fat(struct blkid_probe *probe, __u64 next_off, fat_entry_off; int count; - next_sect_off = (__u64) (next - 2) * vs->vs_cluster_size; - next_off = (start_data_sect + next_sect_off) * + next_sect_off = (next - 2) * vs->vs_cluster_size; + next_off = (__u64) (start_data_sect + next_sect_off) * sector_size; dir = (struct vfat_dir_entry *)