remm 02/03/15 21:34:57 Modified: util/java/org/apache/tomcat/util/buf ByteChunk.java Log: - Fix an off-by-one bug: if the requested string was the last bytes in the chunk, it wouldn't be found. Revision Changes Path 1.8 +1 -1 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/ByteChunk.java Index: ByteChunk.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/ByteChunk.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ByteChunk.java 15 Mar 2002 05:28:35 -0000 1.7 +++ ByteChunk.java 16 Mar 2002 05:34:57 -0000 1.8 @@ -574,7 +574,7 @@ // Look for first char int srcEnd = srcOff + srcLen; - for( int i=myOff+start; i< end - srcLen ; i++ ) { + for( int i=myOff+start; i <= (end - srcLen); i++ ) { if( buff[i] != first ) continue; // found first char, now look for a match int myPos=i+1;
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>