From a18dabce83d8e712198cb4ce33b4d6a99ccbac02 Mon Sep 17 00:00:00 2001 From: nichogenius Date: Fri, 28 Jul 2017 06:33:07 -0600 Subject: [PATCH] this is not a bug... just fixing a bad bug fix this is not a bug... just fixing a bad bug fix. there is no off by 1 error after all. --- b64p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b64p.py b/b64p.py index 781a4c8..6007453 100644 --- a/b64p.py +++ b/b64p.py @@ -59,7 +59,7 @@ def trimR(input, offset): if (offset == 0): return input right_cut = offset_2_chars(offset) - return input[:-right_cut-1] + return input[:-right_cut] def encode(input): e1 = b64encode(input)