diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-26 14:21:04 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-26 14:21:04 +0300 |
commit | 9aa5c652e9335650428fddc0b84037853a06256c (patch) | |
tree | fca2a743021743649528f130dfd4a29193ad1238 /archival/unzip.c | |
parent | 8e5de2aab7421677fd92a5f24da3d2a99dacf9f1 (diff) |
unzip: fix thinko with le/be conv and size (closes bug 129)
awk: make "struct global" hack more robust wrt alignment (closes bug 131)
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index e468ff451..7b47a8ab8 100644 --- a/archival/unzip.c +++ b/archival/unzip.c @@ -140,7 +140,7 @@ struct BUG_cde_header_must_be_16_bytes { }; #define FIX_ENDIANNESS_CDE(cde_header) do { \ - (cde_header).formatted.cds_offset = SWAP_LE16((cde_header).formatted.cds_offset); \ + (cde_header).formatted.cds_offset = SWAP_LE32((cde_header).formatted.cds_offset); \ } while (0) enum { zip_fd = 3 }; |