Fix crash moving partitions when size is a multiple of 16 MiB (#623697)
This commit is contained in:
parent
410d0d2461
commit
e810b7f7f0
|
@ -2339,7 +2339,7 @@ bool GParted_Core::copy_filesystem( const Glib::ustring & src_device,
|
||||||
Utils::format_size( optimal_blocksize, 1 ) ),
|
Utils::format_size( optimal_blocksize, 1 ) ),
|
||||||
STATUS_NONE ) ) ;
|
STATUS_NONE ) ) ;
|
||||||
|
|
||||||
if ( succes )
|
if ( succes && llabs( done ) < src_length )
|
||||||
succes = copy_blocks( src_device,
|
succes = copy_blocks( src_device,
|
||||||
dst_device,
|
dst_device,
|
||||||
src_start + ( dst_start > src_start ? 0 : (done / src_sector_size) ),
|
src_start + ( dst_start > src_start ? 0 : (done / src_sector_size) ),
|
||||||
|
|
Loading…
Reference in New Issue