Skip to content

Commit

Permalink
Fix file size problem
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed Aug 25, 2017
1 parent 2943edb commit e497df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def main(argv):
enc_buffer = image_file.read(chunk.size + pad_cnt)
dec_buffer = cipher_scrmb.decrypt(enc_buffer)
output_file = open(filname_wo_ext + '_' + chunk.id.decode("utf-8") + '.bin', "wb")
output_file.write(dec_buffer[:-pad_cnt])
output_file.write(dec_buffer[:chunk.size])
output_file.close()
print("\nUnpacking encrypted chunk...")
print(str(chunk))
Expand Down

0 comments on commit e497df2

Please sign in to comment.