aboutsummaryrefslogtreecommitdiff
path: root/archival/unzip.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-02-26 11:21:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-02-26 11:21:04 +0000
commit9aa5c652e9335650428fddc0b84037853a06256c (patch)
treefca2a743021743649528f130dfd4a29193ad1238 /archival/unzip.c
parent8e5de2aab7421677fd92a5f24da3d2a99dacf9f1 (diff)
downloadbusybox-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/unzip.c')
-rw-r--r--archival/unzip.c2
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 };