Fix bug when copying huge NTFS partition never finishes (#575324)
Improved logic in cleanup_cursor method to minimize the number of string erase operations performed. Previously when the NTFS copy finished, GParted would take an exceptionally long time to clean up the output. This was due to the huge number of small string erase operations performed on a extremely large string.
Showing with 13 additions and 5 deletions