Fix write zero

This commit is contained in:
世界 2022-09-03 09:24:13 +08:00
parent e09c9f3fc8
commit 1cb3c60b47
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -237,8 +237,8 @@ func (b *Buffer) WriteZero() error {
if b.IsFull() {
return io.ErrShortBuffer
}
b.end++
b.data[b.end] = 0
b.end++
return nil
}