Fixed first byte of data blocks being cut off

This commit is contained in:
Caleb Gardner
2020-12-27 02:10:51 -06:00
parent 89ec7eb0fb
commit a298a3d7b5
2 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -175,12 +175,12 @@ func (d *dataReader) Read(p []byte) (int, error) {
d.curReadOffset = 0
}
for ; read < len(p); read++ {
d.curReadOffset++
if d.curReadOffset < len(d.curData) {
p[read] = d.curData[d.curReadOffset]
} else {
break
}
d.curReadOffset++
}
}
if read != len(p) {