use WriteByte instead of copy

pull/1458/head
Darien Raymond 2018-12-03 12:50:24 +01:00
parent 844f6937a4
commit e392f8ed3d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ func readOne(r io.Reader) (*Buffer, error) {
b := New()
if nBytes > 0 {
copy(b.Extend(int32(nBytes)), firstByte[:])
common.Must(b.WriteByte(firstByte[0]))
}
for i := 0; i < 64; i++ {
_, err := b.ReadFrom(r)