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;