From f0f3029e2620b5c7e2fb68f275a3c8a2bab87582 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 28 Dec 2018 15:02:02 +0100 Subject: [PATCH] src/catar/encoder.rs: fix bug in file copy --- src/catar/encoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }