unzip: fix thinko with le/be conv and size (closes bug 129)

awk: make "struct global" hack more robust wrt alignment (closes bug 131)
This commit is contained in:
Denis Vlasenko
2009-02-26 11:21:04 +00:00
parent 8e5de2aab7
commit 9aa5c652e9
2 changed files with 10 additions and 7 deletions

View File

@@ -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 };