Fix panic when not filling up zipfs's read buffer

This commit is contained in:
John Starich 2020-06-25 23:27:17 -05:00
parent fc99a5d786
commit e76d1f3bb5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (f *File) Read(p []byte) (n int, err error) {
}
err = f.fillBuffer(f.offset + int64(len(p)))
n = copy(p, f.buf[f.offset:])
f.offset += int64(len(p))
f.offset += int64(n)
return
}