summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.13.2-unzip.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-02 15:33:07 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-02 15:33:07 +0000
commitba6882443162eb71915d360988127bce22237b37 (patch)
treeeb240f20d27a569ec726f3780efcd675a2b3c309 /package/busybox/busybox-1.13.2-unzip.patch
parent992b1890a7c3ab487f69b4f8dd2f48f6f26575ae (diff)
busybox: additional 1.13.2 fixes
Diffstat (limited to 'package/busybox/busybox-1.13.2-unzip.patch')
-rw-r--r--package/busybox/busybox-1.13.2-unzip.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.13.2-unzip.patch b/package/busybox/busybox-1.13.2-unzip.patch
new file mode 100644
index 000000000..6b3f713ac
--- /dev/null
+++ b/package/busybox/busybox-1.13.2-unzip.patch
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.13.2/archival/unzip.c busybox-1.13.2-unzip/archival/unzip.c
+--- busybox-1.13.2/archival/unzip.c 2008-11-09 18:28:02.000000000 +0100
++++ busybox-1.13.2-unzip/archival/unzip.c 2009-02-26 12:17:21.000000000 +0100
+@@ -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 };