Fix size off by one sector with unrecognized disk label (#649444)

On disks with an unrecognized disk label, the end sector value
was saved as one sector larger than actual.  This caused the
Partition Information dialog to report the end sector value and
the total number of sectors on the disk as one larger than the
actual value.

Closes Bug #649444 - Partition information reports wrong sector
                     count
This commit is contained in:
Curtis Gedak 2011-05-31 09:41:10 -06:00
parent ad129afa4d
commit 53b2b50f4a
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
Partition partition_temp ;
partition_temp .Set_Unallocated( temp_device .get_path(),
0,
temp_device .length,
temp_device .length - 1,
temp_device .sector_size,
false );
//Place libparted messages in this unallocated partition