Merge branch 'main' of https://github.com/CalebQ42/squashfs into main

This commit is contained in:
Caleb Gardner
2020-12-28 11:51:08 -06:00
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) {