From cdfe103f94112c5d51155c8d01fe4c2899127940 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sat, 29 Apr 2023 21:05:42 -0700 Subject: [PATCH] Bug fix? --- src/write.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write.rs b/src/write.rs index aebb1724..4e1714ea 100644 --- a/src/write.rs +++ b/src/write.rs @@ -338,6 +338,7 @@ impl ZipWriter { let mut copy = Vec::with_capacity(compressed_size as usize); reader.read_to_end(&mut copy)?; drop(reader); + self.inner.get_plain().seek(SeekFrom::Start(write_position))?; self.start_entry(dest_name, options, Some(raw_values))?; self.writing_to_file = true; self.writing_raw = true;