Skip to content

Commit

Permalink
[ARCHIVE] Fix: Ensure CEH and LFH have same flags
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Jun 9, 2024
1 parent 2a328ab commit f0d40d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static CentralEntryHeader fromLocalFileHeader(LocalFileHeader lfh){
ceh.setVersionMadeBy(lfh.getVersionMadeBy());
long offset = lfh.getFileOffset() - lfh.countBytes();
ceh.setLocalRelativeOffset(offset);
ceh.getGeneralPurposeFlag().setUtf8(lfh.getGeneralPurposeFlag().getUtf8());
ceh.getGeneralPurposeFlag().setValue(lfh.getGeneralPurposeFlag().getValue());
ceh.setMethod(lfh.getMethod());
ceh.setDosTime(lfh.getDosTime());
ceh.setCrc(lfh.getCrc());
Expand Down

0 comments on commit f0d40d4

Please sign in to comment.