tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 InputBuffer.java
Date Sun, 05 Jan 2003 13:26:40 GMT
remm        2003/01/05 05:26:39

  Modified:    coyote/src/java/org/apache/coyote/tomcat5 InputBuffer.java
  Log:
  - Fix obvious bug.
  
  Revision  Changes    Path
  1.2       +3 -3      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/InputBuffer.java
  
  Index: InputBuffer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/InputBuffer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InputBuffer.java	5 Jan 2003 11:24:22 -0000	1.1
  +++ InputBuffer.java	5 Jan 2003 13:26:39 -0000	1.2
  @@ -369,16 +369,16 @@
               int nRead = realReadBytes(bb.getBytes(), 0, bb.getBytes().length);
               if (nRead < 0) {
                   return -1;
  -            } else {
  -                bb.setBytes(bb.getBytes(), 0, nRead);
               }
           }
   
           if (markPos == -1) {
  -            cb.setChars(cb.getChars(), 0, 0);
  +            cb.setOffset(0);
  +            cb.setEnd(0);
           }
   
           conv.convert(bb, cb);
  +        bb.setOffset(bb.getEnd());
           state = CHAR_STATE;
   
           return cb.getLength();
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message