Fix crash moving partitions when size is a multiple of 16 MiB (#623697)

This commit is contained in:
Curtis Gedak 2010-07-06 13:11:50 -06:00
parent 410d0d2461
commit e810b7f7f0
1 changed files with 1 additions and 1 deletions

View File

@ -2339,7 +2339,7 @@ bool GParted_Core::copy_filesystem( const Glib::ustring & src_device,
Utils::format_size( optimal_blocksize, 1 ) ),
STATUS_NONE ) ) ;
if ( succes )
if ( succes && llabs( done ) < src_length )
succes = copy_blocks( src_device,
dst_device,
src_start + ( dst_start > src_start ? 0 : (done / src_sector_size) ),