src/catar/encoder.rs: fix bug in file copy

This commit is contained in:
Dietmar Maurer 2018-12-28 15:02:02 +01:00
parent d05f93215e
commit f0f3029e26

View File

@ -297,7 +297,7 @@ impl <W: Write> CaTarEncoder<W> {
self.flush_copy_buffer(count)?;
pos += next;
pos = next;
if pos >= size { break; }
}