From f27e17c455193fdd4b103f46eb98e13cf8394f51 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 1 Jul 2020 10:27:06 +0000 Subject: Really fix `archivers/zoo' on 64-bit machines. When PR 162804 had been committed by gabor@ back in 2011, only two of the proposed four patches supplied were actually included; the patches for zoodel.c and zoopack.c were somehow missed. PR: 162804, 240982 --- archivers/zoo/files/patch-zoopack.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 archivers/zoo/files/patch-zoopack.c (limited to 'archivers/zoo/files/patch-zoopack.c') diff --git a/archivers/zoo/files/patch-zoopack.c b/archivers/zoo/files/patch-zoopack.c new file mode 100644 index 000000000000..a3b569a2e160 --- /dev/null +++ b/archivers/zoo/files/patch-zoopack.c @@ -0,0 +1,14 @@ +--- zoopack.c.orig 1993-05-01 03:59:21 UTC ++++ zoopack.c +@@ -139,7 +139,11 @@ if (zoo_file == NOFILE) + /* Read the header of the old archive. */ + frd_zooh(&old_zoo_header, zoo_file); + ++#ifdef __LP64__ ++if ((int)(old_zoo_header.zoo_start + old_zoo_header.zoo_minus) != 0) { ++#else + if ((old_zoo_header.zoo_start + old_zoo_header.zoo_minus) != 0L) { ++#endif + prterror ('w', failed_consistency); + ++bad_header; /* remember for future error message */ + } -- cgit v1.2.3