Skip to content

Commit

Permalink
fix crypto case issue
Browse files Browse the repository at this point in the history
Signed-off-by: onlyxuyang <onlyxuyang@foxmail.com>
  • Loading branch information
onlyxuyang authored Nov 20, 2024
1 parent 4d4bf46 commit 9bfd5c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,8 @@ fn update_local_zip64_extra_field<T: Write + Seek>(
let block = block.serialize();
writer.write_all(&block)?;

file.extra_field = Some(block.into_vec().into());
let extra_field = Arc::get_mut(file.extra_field.as_mut().unwrap()).unwrap();
extra_field[..block.len()].copy_from_slice(&block);

Ok(())
}
Expand Down

0 comments on commit 9bfd5c8

Please sign in to comment.