Skip to content

Commit

Permalink
fix: add missing seek back (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: David Mateos Romero <[email protected]>
  • Loading branch information
klecko and David Mateos Romero authored Feb 8, 2024
1 parent 5443270 commit fc24ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/iyxan23/zipalignjava/ZipAlign.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ public static void alignZip(RandomAccessFile file, OutputStream out, int alignme
));
}

file.seek(entryStart + 46); // go back to our prev location
soAligned = true;
}
file.seek(entryStart + 46); // go back to our prev location
}

// if this file is uncompressed, and it has not been aligned, we align it
Expand Down

0 comments on commit fc24ceb

Please sign in to comment.