From e810b7f7f099a69a671be58ab7cd75475d55b57e Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Tue, 6 Jul 2010 13:11:50 -0600 Subject: [PATCH] Fix crash moving partitions when size is a multiple of 16 MiB (#623697) --- src/GParted_Core.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 10972506..966900a1 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -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) ),