Skip to content

Commit

Permalink
Fix #348
Browse files Browse the repository at this point in the history
  • Loading branch information
heipiao233 committed Aug 26, 2023
1 parent c65add3 commit f1064e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -948,9 +948,9 @@ public synchronized int read(ByteBuffer dst) throws IOException {
throw new IOException("Unable to read enough bytes from the gzip stream!");
} else {
bufferPosition += read;
position += read;
}
}
position += toRead;

dst.put(buffer, pos, toRead);
return toRead;
Expand Down

0 comments on commit f1064e2

Please sign in to comment.