Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
fmt: fix French Bread unpacking
Browse files Browse the repository at this point in the history
Regression from fa6472f.
  • Loading branch information
rr- committed Aug 10, 2015
1 parent 5f95235 commit 16ed51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmt/french_bread/p_archive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static std::unique_ptr<File> read_file(
bstr data = arc_io.read(entry.size);

static const size_t block_size = 0x2172;
for (auto i : util::range(std::min(block_size, entry.size)))
for (auto i : util::range(std::min(block_size + 1, entry.size)))
data[i] ^= entry.name[i % entry.name.size()] + i + 3;

file->name = entry.name;
Expand Down

0 comments on commit 16ed51f

Please sign in to comment.