Remy's resizing fix from bug 44494
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 7 Apr 2008 22:43:52 +0000 (22:43 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 7 Apr 2008 22:43:52 +0000 (22:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@645719 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/buf/CharChunk.java

index 4dc03fc..e9157fd 100644 (file)
@@ -480,7 +480,7 @@ public final class CharChunk implements Cloneable, Serializable, CharSequence {
            tmp=new char[newSize];
        }
        
-       System.arraycopy(buff, start, tmp, start, end-start);
+       System.arraycopy(buff, 0, tmp, 0, end);
        buff = tmp;
        tmp = null;
     }