mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
Also Fixes #306
This commit is contained in:
committed by
Jeroen van Erp
parent
8e15a8bd7d
commit
2b21ec6032
@@ -138,7 +138,7 @@ public final class ChannelOutputStream extends OutputStream implements ErrorNoti
|
|||||||
int length = len;
|
int length = len;
|
||||||
int offset = off;
|
int offset = off;
|
||||||
while (length > 0) {
|
while (length > 0) {
|
||||||
final int n = buffer.write(data, offset, len);
|
final int n = buffer.write(data, offset, length);
|
||||||
offset += n;
|
offset += n;
|
||||||
length -= n;
|
length -= n;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user