We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8030dfc commit 51e11a7Copy full SHA for 51e11a7
pkg/base/interleaved_frame.go
@@ -39,7 +39,7 @@ func (f *InterleavedFrame) Unmarshal(br *bufio.Reader) error {
39
f.Channel = int(header[1])
40
if cap(f.Payload) < payloadLen {
41
// if there's not enough space, extend the buffer
42
- f.Payload = append(f.Payload[:cap(f.Payload)], make([]byte, payloadLen-len(f.Payload))...)
+ f.Payload = append(f.Payload[:cap(f.Payload)], make([]byte, payloadLen-cap(f.Payload))...)
43
} else {
44
// otherwise, set the len of the buffer to the payloadLen
45
f.Payload = f.Payload[:payloadLen]
0 commit comments