This commit is contained in:
Chris Hennick 2023-04-29 21:05:42 -07:00
parent ccd591ab14
commit cdfe103f94
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -338,6 +338,7 @@ impl<A: Read + Write + Seek> ZipWriter<A> {
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;