tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/ajp Ajp13Packet.java
Date Thu, 21 Feb 2002 03:13:27 GMT
billbarker    02/02/20 19:13:27

  Modified:    jk/java/org/apache/ajp Ajp13Packet.java
  Log:
  Port fix for 6579 from the 3.3 branch.
  
  Revision  Changes    Path
  1.10      +5 -2      jakarta-tomcat-connectors/jk/java/org/apache/ajp/Ajp13Packet.java
  
  Index: Ajp13Packet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/Ajp13Packet.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Ajp13Packet.java	20 Nov 2001 17:49:53 -0000	1.9
  +++ Ajp13Packet.java	21 Feb 2002 03:13:27 -0000	1.10
  @@ -527,14 +527,17 @@
       }
   
       private void hexLine( int start ) {
  +	int pkgEnd = len + 4;
  +	if( pkgEnd > buff.length )
  +	    pkgEnd = buff.length;
           for( int i=start; i< start+16 ; i++ ) {
  -            if( i < len + 4)
  +            if( i < pkgEnd)
                   System.out.print( hex( buff[i] ) + " ");
               else 
                   System.out.print( "   " );
           }
           System.out.print(" | ");
  -        for( int i=start; i < start+16 && i < len + 4; i++ ) {
  +        for( int i=start; i < start+16 && i < pkgEnd; i++ ) {
               if( Character.isLetterOrDigit( (char)buff[i] ))
                   System.out.print( new Character((char)buff[i]) );
               else
  
  
  

--
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