mirror of
https://github.com/claunia/dddiff.git
synced 2025-12-16 18:34:24 +00:00
Fix seeking when a difference is found.
This commit is contained in:
1
main.c
1
main.c
@@ -127,7 +127,6 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if(dif)
|
if(dif)
|
||||||
{
|
{
|
||||||
lseek(fd_in, -in_read, SEEK_CUR);
|
|
||||||
lseek(fd_out, -out_read, SEEK_CUR);
|
lseek(fd_out, -out_read, SEEK_CUR);
|
||||||
total_written += write(fd_out, in_buf, to_process);
|
total_written += write(fd_out, in_buf, to_process);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user