Fix zip_writer
zip_writer accidentially set bit 3 in central directory but not in local file header. This bit should not be set, so don't write it to central directory. Fixes warnings from info-zip and errrors from advzip.
This commit is contained in:
parent
3edb715eb8
commit
77a2d9e906
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ void zip_writer::commit() throw(std::bad_alloc, std::logic_error, std::runtime_e
|
|||
write32(&directory_entry[0], 0x02014b50);
|
||||
write16(&directory_entry[4], 3);
|
||||
write16(&directory_entry[6], 20);
|
||||
write16(&directory_entry[8], 8);
|
||||
write16(&directory_entry[8], 0);
|
||||
write16(&directory_entry[10], compression ? 8 : 0);
|
||||
write16(&directory_entry[12], 0);
|
||||
write16(&directory_entry[14], 10273);
|
||||
|
|
Loading…
Add table
Reference in a new issue