Skip to content

Commit

Permalink
Fix a bug with header removal for applying patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyrositor committed Jun 28, 2013
1 parent ee3014d commit 51cbc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPSPatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def applyToTarget(self, rom):

# Expand the ROM if necessary.
last = sorted(self.records)[len(self.records) - 1]
newSize = last + len(self.records[last])
newSize = last + len(self.records[last]) - self.header
if newSize > len(rom.getvalue()):
rom.modifySize(newSize)

Expand Down

0 comments on commit 51cbc5f

Please sign in to comment.