Fixed displaying the correct sector number in error message

When opening a volume, the availability of the last sector is checked,
but the error message mentioned a wrong sector.
edge.strict_endians
Jean-Pierre André 2014-03-11 10:37:27 +01:00
parent b80d33785a
commit 15f300412a
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ int ntfs_boot_sector_parse(ntfs_volume *vol, const NTFS_BOOT_SECTOR *bs)
(sectors - 1) << vol->sector_size_bits,
SEEK_SET) == -1) {
ntfs_log_perror("Failed to read last sector (%lld)",
(long long)sectors);
(long long)(sectors - 1));
ntfs_log_error("%s", last_sector_error);
return -1;
}