summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Lesinski2017-04-06 19:33:18 -0500
committerGerrit Code Review2017-04-06 19:33:20 -0500
commit47f558192767eec34455c9179a9fb6138630aecd (patch)
treebc3108f262e2664fd66329c4487bcdc1a76652a4 /include
parente7fbd6a2b42b1a498a4c3587a829127bd32dc63d (diff)
parente2fa70bcb048566eff4d0e271288f24f0bdbc0a8 (diff)
downloadplatform-system-core-47f558192767eec34455c9179a9fb6138630aecd.tar.gz
platform-system-core-47f558192767eec34455c9179a9fb6138630aecd.tar.xz
platform-system-core-47f558192767eec34455c9179a9fb6138630aecd.zip
Merge "ZipWriter: Do not write DataDescriptor for STORED files"
Diffstat (limited to 'include')
-rw-r--r--include/ziparchive/zip_writer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ziparchive/zip_writer.h b/include/ziparchive/zip_writer.h
index 41ca2e1a3..08ead4845 100644
--- a/include/ziparchive/zip_writer.h
+++ b/include/ziparchive/zip_writer.h
@@ -75,7 +75,8 @@ public:
75 uint32_t uncompressed_size; 75 uint32_t uncompressed_size;
76 uint16_t last_mod_time; 76 uint16_t last_mod_time;
77 uint16_t last_mod_date; 77 uint16_t last_mod_date;
78 uint32_t local_file_header_offset; 78 uint32_t padding_length;
79 off64_t local_file_header_offset;
79 }; 80 };
80 81
81 static const char* ErrorCodeString(int32_t error_code); 82 static const char* ErrorCodeString(int32_t error_code);
@@ -172,6 +173,7 @@ private:
172 }; 173 };
173 174
174 FILE* file_; 175 FILE* file_;
176 bool seekable_;
175 off64_t current_offset_; 177 off64_t current_offset_;
176 State state_; 178 State state_;
177 std::vector<FileEntry> files_; 179 std::vector<FileEntry> files_;