Skip to content

Commit 2a0ed62

Browse files
committed
imgtool/modules/fat.cpp: Fix build
1 parent 7d42c6c commit 2a0ed62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/imgtool/modules/fat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static imgtoolerr_t fat_partition_open(imgtool::partition &partition, uint64_t f
436436
if (info->sectors_per_cluster == 0)
437437
return IMGTOOLERR_CORRUPTIMAGE;
438438

439-
info->total_sectors = total_sectors_l != 0 ? total_sector_l : total_sectors_h;
439+
info->total_sectors = total_sectors_l != 0 ? total_sectors_l : total_sectors_h;
440440
available_sectors = info->total_sectors - info->reserved_sectors
441441
- (info->sectors_per_fat * info->fat_count)
442442
- (info->root_entries * FAT_DIRENT_SIZE + FAT_SECLEN - 1) / FAT_SECLEN;

0 commit comments

Comments
 (0)