Skip to content

Commit 90ace81

Browse files
committed
fix inputstreamat bug
1 parent 9e49982 commit 90ace81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/qiniu/utils/InputStreamAt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected byte[] fileStreamRead(long offset, int length) throws IOException {
144144
synchronized (data) {
145145
mFileStream.seek(offset);
146146
do {
147-
read = mFileStream.read(data, totalRead, length);
147+
read = mFileStream.read(data, totalRead, length - totalRead);
148148
if (read <= 0) break;
149149
totalRead += read;
150150
} while (length > totalRead);

0 commit comments

Comments
 (0)