This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push: new a029229 fixed the typo which caused 32 bytes to be reserved instead of 4 a029229 is described below commit a029229309d88215a1f7fb6e3edb7fe4feff1385 Author: Chetan Narsude <cnars...@cisco.com> AuthorDate: Mon May 11 13:47:42 2020 -0700 fixed the typo which caused 32 bytes to be reserved instead of 4 --- .../main/java/org/apache/sshd/common/util/buffer/ByteArrayBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshd-common/src/main/java/org/apache/sshd/common/util/buffer/ByteArrayBuffer.java b/sshd-common/src/main/java/org/apache/sshd/common/util/buffer/ByteArrayBuffer.java index 5de36a6..3c087b7 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/util/buffer/ByteArrayBuffer.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/util/buffer/ByteArrayBuffer.java @@ -217,7 +217,7 @@ public class ByteArrayBuffer extends Buffer { @Override public void putBuffer(ByteBuffer buffer) { int required = buffer.remaining(); - ensureCapacity(required + Integer.SIZE); + ensureCapacity(required + Integer.BYTES); putInt(required); buffer.get(data, wpos, required); wpos += required;