From c72633ebe4532ae609dda85757d8026ef7c302c7 Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Fri, 12 Mar 2010 08:44:54 +0000 Subject: [PATCH] problem 48894 1) buffer size management is present in FileChannel, so we do not need to impose any limit. 2) bus error in gij when requested copy size > remaining file size (this is a bug in gij that will not be triggered anymore by ant from this line) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@922179 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/ResourceUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/util/ResourceUtils.java b/src/main/org/apache/tools/ant/util/ResourceUtils.java index d269ad4cb..7413914d0 100644 --- a/src/main/org/apache/tools/ant/util/ResourceUtils.java +++ b/src/main/org/apache/tools/ant/util/ResourceUtils.java @@ -466,7 +466,7 @@ public class ResourceUtils { long count = srcChannel.size(); while (position < count) { position += - srcChannel.transferTo(position, FileUtils.BUF_SIZE, + srcChannel.transferTo(position, count - position, destChannel); } } finally {