master
Vitaliy Filippov 2019-02-20 01:02:26 +03:00
parent 6787050f95
commit 2881ba7e3a
2 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,7 @@ void apply_blocks(int src, int dst, off64_t start, off64_t length)
written = 0;
while (written < fact)
{
fact_write = write(dst, copy_buffer, fact-written);
fact_write = write(dst, copy_buffer+written, fact-written);
if (fact_write <= 0)
{
fprintf(stderr, "Write error: %s\n", strerror(errno));

View File

@ -35,7 +35,6 @@ void copy_blocks(int src, int dst, off64_t start, off64_t length)
fprintf(stderr, "Failed to copy data: %s\n", strerror(errno));
exit(1);
}
cur += fact;
copied += fact;
}
}