fix cloneAppend

This commit is contained in:
mossid 2018-10-09 03:06:16 +09:00
parent 5091d1688d
commit c770e74571
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ type prefixStore struct {
func cloneAppend(bz []byte, tail []byte) (res []byte) {
res = make([]byte, len(bz)+len(tail))
copy(res, bz)
res = append(res, bz...)
copy(res[len(bz):], tail)
return
}