Skip to content

Commit

Permalink
Fix panic when not filling up zipfs's read buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Jun 26, 2020
1 parent fc99a5d commit e76d1f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipfs/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e76d1f3

Please sign in to comment.