[libgsf] Zip: don't write ignore header without a need
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] Zip: don't write ignore header without a need
- Date: Mon, 15 Dec 2014 04:08:45 +0000 (UTC)
commit 777d12fc5c37888452540a8cd83cadc5181a3c0e
Author: Morten Welinder <terra gnome org>
Date: Sun Dec 14 23:08:17 2014 -0500
Zip: don't write ignore header without a need
ChangeLog | 5 +++++
gsf/gsf-outfile-zip.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 37ec1dc..00349aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-14 Morten Welinder <terra gnome org>
+
+ * gsf/gsf-outfile-zip.c (zip_dirent_write): Fix test for writing
+ ignore header.
+
2014-12-02 Morten Welinder <terra gnome org>
* tools/gsf.c (gsf_create): Allow "-" for output to stdout.
diff --git a/gsf/gsf-outfile-zip.c b/gsf/gsf-outfile-zip.c
index 4e921a0..9d07ad7 100644
--- a/gsf/gsf-outfile-zip.c
+++ b/gsf/gsf-outfile-zip.c
@@ -187,7 +187,7 @@ zip_dirent_write (GsfOutfileZip *zip, const GsfZipDirent *dirent)
GSF_LE_SET_GUINT64 (tmp, dirent->offset);
g_string_append_len (extras, tmp, 8);
}
- } else if (zip->zip64 == -1) {
+ } else if (dirent->zip64 == -1) {
char tmp[8];
/* Match the local header. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]