aboutsummaryrefslogtreecommitdiff
path: root/pkg/types/encoding_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/types/encoding_test.go')
-rw-r--r--pkg/types/encoding_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/types/encoding_test.go b/pkg/types/encoding_test.go
index a050002..cbcf3ba 100644
--- a/pkg/types/encoding_test.go
+++ b/pkg/types/encoding_test.go
@@ -15,7 +15,7 @@ func TestPutSSHString(t *testing.T) {
in: "รถ foo is a bar",
},
} {
- var b [128]byte
+ b := make([]byte, 4+len(tbl.in))
i := putSSHString(b[:], tbl.in)
if got, want := i, len(tbl.in)+4; got != want {