Author: remy.maucherat(a)jboss.com
Date: 2008-03-31 11:17:04 -0400 (Mon, 31 Mar 2008)
New Revision: 572
Modified:
trunk/java/org/apache/tomcat/util/buf/CharChunk.java
Log:
- One (last ?) mark fix: when resizing, we need to save the whole array, because the
beginning could be marked
and read again.
Modified: trunk/java/org/apache/tomcat/util/buf/CharChunk.java
===================================================================
--- trunk/java/org/apache/tomcat/util/buf/CharChunk.java 2008-03-31 13:59:32 UTC (rev
571)
+++ trunk/java/org/apache/tomcat/util/buf/CharChunk.java 2008-03-31 15:17:04 UTC (rev
572)
@@ -480,7 +480,7 @@
tmp=new char[newSize];
}
- System.arraycopy(buff, start, tmp, start, end-start);
+ System.arraycopy(buff, 0, tmp, 0, end);
buff = tmp;
tmp = null;
}
Show replies by date