Skip to content

Commit 51e11a7

Browse files
authored
Update interleaved_frame.go
1 parent 8030dfc commit 51e11a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/base/interleaved_frame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (f *InterleavedFrame) Unmarshal(br *bufio.Reader) error {
3939
f.Channel = int(header[1])
4040
if cap(f.Payload) < payloadLen {
4141
// if there's not enough space, extend the buffer
42-
f.Payload = append(f.Payload[:cap(f.Payload)], make([]byte, payloadLen-len(f.Payload))...)
42+
f.Payload = append(f.Payload[:cap(f.Payload)], make([]byte, payloadLen-cap(f.Payload))...)
4343
} else {
4444
// otherwise, set the len of the buffer to the payloadLen
4545
f.Payload = f.Payload[:payloadLen]

0 commit comments

Comments
 (0)