fix prefixstore

This commit is contained in:
mossid 2018-09-28 23:25:24 +09:00
parent 3a0f7c58fe
commit f3c330ec4d
1 changed files with 1 additions and 1 deletions

View File

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