diff options
author | Sebastian Muszytowski <sebastian@muszytowski.net> | 2016-01-22 18:59:14 +0100 |
---|---|---|
committer | Sebastian Muszytowski <sebastian@muszytowski.net> | 2016-01-22 18:59:14 +0100 |
commit | 639e93ca39449c84959ebb526513c7718c070bb1 (patch) | |
tree | a99e32e94c9dfcf83168ac2cc4f52eb0eea0d480 | |
parent | 724f650b968e4029dfdd0f355cc8669e098b6880 (diff) |
proper null bytes for padding purposes
-rw-r--r-- | utilities/hammington2416.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities/hammington2416.py b/utilities/hammington2416.py index 46f76f7..8e60a33 100644 --- a/utilities/hammington2416.py +++ b/utilities/hammington2416.py @@ -25,7 +25,7 @@ for byte in f.read(): bytepos = 0 output += str(HammingCalculateParity2416(ord(oldbyte), ord(byte))) if bytepos == 1: - output += " " - output += str(HammingCalculateParity2416(ord(oldbyte), ord(" "))) + output += "\x00" + output += str(HammingCalculateParity2416(ord(oldbyte), ord("\x00"))) print output
\ No newline at end of file |