Files
haikuports/dev-libs/libzip/patches/libzip-1.1.3.patchset
fbrosson ae3d17e2d2 libzip: add recipe for 1.1.3, disable static lib, fix install. (#622)
* Add recipe for 1.1.3 but call configure with --disable-static. This
  is OK since there are currently no recipes depending on libzip.
* "make install" puts zipconf.h in lib/libzip/include/ so we need to
  move it to develop/headers/libzip/ and fix libzip.pc.
* Change "LN=ln -f" into "LN=ln -frs" in man/Makefile.am to make ln
  create relative symlinks. This works fine and also saves space.
2016-06-02 10:35:52 +02:00

31 lines
782 B
Plaintext

From 83469244d644593a2ef27f179102b0b4e1975caf Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Sat, 28 May 2016 09:50:37 +0000
Subject: gcc2 patch
diff --git a/src/zipcmp.c b/src/zipcmp.c
index cf9b572..032c838 100644
--- a/src/zipcmp.c
+++ b/src/zipcmp.c
@@ -313,6 +313,7 @@ list_directory(const char *name, struct archive *a)
FTS *fts;
FTSENT *ent;
zip_uint64_t nalloc;
+ size_t prefix_length;
char * const names[2] = { (char *)name, NULL };
@@ -321,7 +322,7 @@ list_directory(const char *name, struct archive *a)
fprintf(stderr, "%s: can't open directory '%s': %s\n", prg, name, strerror(errno));
return -1;
}
- size_t prefix_length = strlen(name)+1;
+ prefix_length = strlen(name)+1;
nalloc = 0;
--
2.7.0