From be19aa8d1e3f14bc6cdd3aa0b09e0d1da9762cce Mon Sep 17 00:00:00 2001 From: Alexis Vanier Date: Sat, 23 Feb 2019 00:14:59 -0500 Subject: [PATCH] Pad with actual null ascii chars --- gorecptprint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gorecptprint.go b/gorecptprint.go index bf07ec8..4dc60e4 100644 --- a/gorecptprint.go +++ b/gorecptprint.go @@ -76,7 +76,7 @@ func main() { if len(stringArray[len(stringArray)-1]) < 174 { shortString := stringArray[len(stringArray)-1] - paddedString := shortString + "\n" + strings.Repeat("0", (173-len(shortString))) + paddedString := shortString + "\n" + strings.Repeat(string("\x00"), (173-len(shortString))) stringArray[len(stringArray)-1] = paddedString }