From b8d1f2feb0b9b6a311132e28ed903be6d308e251 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 23 Jul 2024 14:43:04 +0200 Subject: [PATCH] Fix comment --- tar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tar.py b/tar.py index 48c8dcf..81b7226 100644 --- a/tar.py +++ b/tar.py @@ -61,7 +61,7 @@ def header_chunk(filename: str, filepath: str) -> bytes: # POSIX 1003.1-1990: 255 empty bytes - # Compute the checksum: we start at 248 which are the 8 fields of checksum filled with spaces (32 * 8) + # Compute the checksum: we start at 256 which are the 8 fields of checksum filled with spaces (32 * 8) checksum = oct(functools.reduce(lambda x, y: x + y, buffer, 256)).rjust(6, '0').encode('ascii') buffer[148:154] = checksum