diff --git a/common/buf/buffer.go b/common/buf/buffer.go index bfc07e0..8f2ce1a 100644 --- a/common/buf/buffer.go +++ b/common/buf/buffer.go @@ -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 }