tiny fix
This commit is contained in:
parent
4a784b5636
commit
fe663b9ee6
2 changed files with 2 additions and 1 deletions
|
@ -1142,6 +1142,7 @@ fn parse_extra_field(file: &mut ZipFileData) -> ZipResult<()> {
|
||||||
};
|
};
|
||||||
let mut reader = io::Cursor::new(extra_field.as_ref());
|
let mut reader = io::Cursor::new(extra_field.as_ref());
|
||||||
|
|
||||||
|
/* TODO: codify this structure into Zip64ExtraFieldBlock fields! */
|
||||||
while (reader.position() as usize) < extra_field.len() {
|
while (reader.position() as usize) < extra_field.len() {
|
||||||
let kind = reader.read_u16_le()?;
|
let kind = reader.read_u16_le()?;
|
||||||
let len = reader.read_u16_le()?;
|
let len = reader.read_u16_le()?;
|
||||||
|
|
|
@ -849,7 +849,7 @@ impl ZipFileData {
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
#[repr(packed)]
|
#[repr(packed)]
|
||||||
pub(crate) struct ZipCentralEntryBlock {
|
pub(crate) struct ZipCentralEntryBlock {
|
||||||
pub magic: spec::Magic,
|
magic: spec::Magic,
|
||||||
pub version_made_by: u16,
|
pub version_made_by: u16,
|
||||||
pub version_to_extract: u16,
|
pub version_to_extract: u16,
|
||||||
pub flags: u16,
|
pub flags: u16,
|
||||||
|
|
Loading…
Add table
Reference in a new issue