diff --git a/src/catar/encoder.rs b/src/catar/encoder.rs index e02d7ba5..41a7834a 100644 --- a/src/catar/encoder.rs +++ b/src/catar/encoder.rs @@ -297,7 +297,7 @@ impl CaTarEncoder { self.flush_copy_buffer(count)?; - pos += next; + pos = next; if pos >= size { break; } }