src/catar/encoder.rs: fix bug in file copy
This commit is contained in:
parent
d05f93215e
commit
f0f3029e26
|
@ -297,7 +297,7 @@ impl <W: Write> CaTarEncoder<W> {
|
|||
|
||||
self.flush_copy_buffer(count)?;
|
||||
|
||||
pos += next;
|
||||
pos = next;
|
||||
|
||||
if pos >= size { break; }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue