Fix init buffer

This commit is contained in:
Masaaki Goshima 2021-06-04 12:41:18 +09:00
parent 7d7af9fb36
commit a973797e61
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func NewStream(r io.Reader) *Stream {
return &Stream{
r: r,
bufSize: initBufSize,
buf: []byte{nul},
buf: make([]byte, initBufSize),
}
}