diff --git a/decode_stream.go b/decode_stream.go index ba874e5..c5009a3 100644 --- a/decode_stream.go +++ b/decode_stream.go @@ -82,9 +82,6 @@ func (s *stream) readBuf() []byte { copy(s.buf, remainBuf) } remainLen := s.length - s.cursor - if remainLen > 0 { - remainLen-- // last char is nul - } return s.buf[s.cursor+remainLen:] }