]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libblkid: fix integer width issue in probe_fat
authorTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jan 2014 02:56:29 +0000 (21:56 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jan 2014 02:56:29 +0000 (21:56 -0500)
Addresses-Coverity-Id: #1049162

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c

index b63a509ee5590fd8cf49f48bec61e1c75b4e824c..4b797ab1edd6b87a7e06094d4d590808616e12ed 100644 (file)
@@ -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 *)