Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Commit

Permalink
Make sure patches are aligned to 4 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mid-kid committed Mar 29, 2016
1 parent 01787a6 commit e1a8d6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions patches/patissier.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def die(string):
cake.seek(variables_offset)

# Write the actual code to the file
cake.write(b'\0' * (4 - cake.tell() % 4)) # Align to 4 bytes
patch_offset = cake.tell() # The current location is the start of the patch
cake.write(patch_code)

Expand Down

0 comments on commit e1a8d6b

Please sign in to comment.