Fix updating local ZIP64 extra field.
This commit is contained in:
parent
d53c8bdf07
commit
425c54cd5f
1 changed files with 1 additions and 1 deletions
|
@ -1062,7 +1062,7 @@ fn update_local_zip64_extra_field<T: Write + io::Seek>(
|
|||
writer: &mut T,
|
||||
file: &ZipFileData,
|
||||
) -> ZipResult<()> {
|
||||
let zip64_extra_field = file.header_start + 30 + file.file_name_raw.len() as u64;
|
||||
let zip64_extra_field = file.header_start + 30 + file.file_name.as_bytes().len() as u64;
|
||||
writer.seek(io::SeekFrom::Start(zip64_extra_field + 4))?;
|
||||
writer.write_u64::<LittleEndian>(file.uncompressed_size)?;
|
||||
writer.write_u64::<LittleEndian>(file.compressed_size)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue