summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorSevki <s@sevki.org>2020-07-21 19:42:04 +0100
committersevki <s@sevki.org>2020-07-21 22:42:18 +0100
commit033fe6d70aa2c6bb64b33668c07eb5db522f9957 (patch)
tree48eeb2d6f2d8d6a35ec9e6ea1419c6227b4978ef /pkg
parente1a04f84e864b9a5c8a51a7cdd32f8db5377aff1 (diff)
p9: fix `registry.get` ob1 bug
Diffstat (limited to 'pkg')
-rw-r--r--pkg/p9/messages.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/p9/messages.go b/pkg/p9/messages.go
index 57b89ad7d..2cb59f934 100644
--- a/pkg/p9/messages.go
+++ b/pkg/p9/messages.go
@@ -2506,7 +2506,7 @@ type msgFactory struct {
var msgRegistry registry
type registry struct {
- factories [math.MaxUint8]msgFactory
+ factories [math.MaxUint8 + 1]msgFactory
// largestFixedSize is computed so that given some message size M, you can
// compute the maximum payload size (e.g. for Twrite, Rread) with