Skip to content

Commit 5edc4f3

Browse files
committed
Comment
1 parent 7d389e0 commit 5edc4f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ public static long copyLarge(final InputStream input, final OutputStream output,
18031803
output.write(buffer, 0, read);
18041804
totalRead += read;
18051805
if (length > 0) { // only adjust length if not reading to the end
1806-
// Note the cast must work because buffer.length is an integer
1806+
// Note the cast must work because bufferLength = buffer.length is an integer
18071807
bytesToRead = (int) Math.min(length - totalRead, bufferLength);
18081808
}
18091809
}

0 commit comments

Comments
 (0)