diff options
author | Denis Vlasenko | 2009-02-26 11:21:04 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-02-26 11:21:04 +0000 |
commit | 9aa5c652e9335650428fddc0b84037853a06256c (patch) | |
tree | fca2a743021743649528f130dfd4a29193ad1238 /archival | |
parent | 8e5de2aab7421677fd92a5f24da3d2a99dacf9f1 (diff) | |
download | busybox-9aa5c652e9335650428fddc0b84037853a06256c.zip busybox-9aa5c652e9335650428fddc0b84037853a06256c.tar.gz |
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')
-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 e468ff4..7b47a8a 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 }; |