diff --git a/io.c b/io.c index 138153bf4a..28dfd56a43 100644 --- a/io.c +++ b/io.c @@ -10890,10 +10890,10 @@ nogvl_copy_file_range(struct copy_stream_struct *stp) stp->error_no = errno; return -1; } - copy_length = src_size - current_offset; + copy_length = src_size - current_offset; } else { - copy_length = src_size - src_offset; + copy_length = src_size - src_offset; } }