Skip to content

Commit

Permalink
Merge pull request #536 from mwiede/dependabot/maven/commons-io-commo…
Browse files Browse the repository at this point in the history
…ns-io-2.16.1

Bump commons-io:commons-io from 2.15.1 to 2.16.1
  • Loading branch information
mwiede authored Apr 11, 2024
2 parents e7f7fe3 + 66cf28e commit 336136b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.1</version>
<version>2.16.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/com/jcraft/jsch/AbstractBufferMargin.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ private void doScp(Session session, boolean debugException) throws Exception {
byte[] buf = new byte[17];
is.read(buf, 0, 17);
sendAck(os);
Files.copy(new BoundedInputStream(is, 100L * 1024L), out);
Files.copy(
BoundedInputStream.builder().setMaxCount(100L * 1024L).setInputStream(is).get(),
out);
checkAck(is);
sendAck(os);
}
Expand Down

0 comments on commit 336136b

Please sign in to comment.