Skip to content

Commit

Permalink
Pad with actual null ascii chars
Browse files Browse the repository at this point in the history
  • Loading branch information
avanier committed Feb 23, 2019
1 parent 3a267f8 commit be19aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorecptprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit be19aa8

Please sign in to comment.