remm        2004/04/28 15:04:10

  Modified:    util/java/org/apache/tomcat/util/buf MessageBytes.java
  Log:
  - Duplicate should (IMO) not allocate the exact number of needed bytes.
  - Bug 28674.
  
  Revision  Changes    Path
  1.14      +2 -2      
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/MessageBytes.java
  
  Index: MessageBytes.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/MessageBytes.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MessageBytes.java 24 Feb 2004 08:50:06 -0000      1.13
  +++ MessageBytes.java 28 Apr 2004 22:04:10 -0000      1.14
  @@ -486,13 +486,13 @@
        case MessageBytes.T_BYTES:
            type=T_BYTES;
            ByteChunk bc=src.getByteChunk();
  -         byteC.allocate( bc.getLength(), -1 );
  +         byteC.allocate( 2 * bc.getLength(), -1 );
            byteC.append( bc );
            break;
        case MessageBytes.T_CHARS:
            type=T_CHARS;
            CharChunk cc=src.getCharChunk();
  -         charC.allocate( cc.getLength(), -1 );
  +         charC.allocate( 2 * cc.getLength(), -1 );
            charC.append( cc );
            break;
        case MessageBytes.T_STR:
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to