diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-25 14:59:48 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-25 14:59:48 -0500 |
commit | f25cbf8546f84f12063aec6bf907accb0923829f (patch) | |
tree | 661f424191bf255344323701dd01fcdee5cdfdb0 | |
parent | 42e46e3c3e10715b6c0e6c17e0537aa215508543 (diff) | |
download | patatt-f25cbf8546f84f12063aec6bf907accb0923829f.tar.gz |
Split at 75 characters isntead of 78
Splitting at 78 characters produces strings that are too long when the
leading space/tab and the trailing CRLF are added. Split at 75
characters instead, which gives us a total length of 78, leading space
and CRLF included.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | patatt/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patatt/__init__.py b/patatt/__init__.py index 7c97cff..f5e6a9c 100644 --- a/patatt/__init__.py +++ b/patatt/__init__.py @@ -451,7 +451,7 @@ class DevsigHeader: return good, valid, trusted, signkey, signtime @staticmethod - def splitter(longstr: bytes, limit: int = 78) -> bytes: + def splitter(longstr: bytes, limit: int = 75) -> bytes: splitstr = list() first = True while len(longstr) > limit: |