Fix seeking when a difference is found.

This commit is contained in:
2022-08-30 14:05:00 +01:00
parent 55b338121c
commit b857815168

1
main.c
View File

@@ -127,7 +127,6 @@ int main(int argc, char** argv)
if(dif)
{
lseek(fd_in, -in_read, SEEK_CUR);
lseek(fd_out, -out_read, SEEK_CUR);
total_written += write(fd_out, in_buf, to_process);
}