Skip to content

Commit

Permalink
Fix regression from 40f956b. Invalid length parameter. (#322)
Browse files Browse the repository at this point in the history
Also Fixes #306
  • Loading branch information
dkocher authored and hierynomus committed Apr 25, 2017
1 parent 8e15a8b commit 2b21ec6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public synchronized void write(final byte[] data, int off, int len)
int length = len;
int offset = off;
while (length > 0) {
final int n = buffer.write(data, offset, len);
final int n = buffer.write(data, offset, length);
offset += n;
length -= n;
}
Expand Down

0 comments on commit 2b21ec6

Please sign in to comment.