mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +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 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user