aboutsummaryrefslogtreecommitdiff
path: root/pkg/types
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-03-28 18:59:43 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-03-28 19:10:49 +0200
commitcaa2c5c56bc009f36a22828b4a5885602bc9675d (patch)
tree6364b6e76b229d4bd1cbcff1b2907e62657aae5f /pkg/types
parent53e58a58b1a1f9d956d0bdd298419d78f24ced92 (diff)
fix so that test buffer is always correct size
Diffstat (limited to 'pkg/types')
-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 {