Removed (0 != space) check from while loop in copy_until_full() method.