tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject Re: Bug in B2C converter WAS: svn commit: r568307 - /tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
Date Thu, 28 Feb 2008 15:45:03 GMT
On Thu, 2008-02-28 at 01:36 +0100, Remy Maucherat wrote:
> Index: java/org/apache/catalina/connector/InputBuffer.java
> ===================================================================
> ---java/org/apache/catalina/connector/InputBuffer.java	(revision 630535)
> +++java/org/apache/catalina/connector/InputBuffer.java	(working copy)
> @@ -355,7 +355,7 @@
>          }
>  
>          state = CHAR_STATE;
> -        conv.convert(bb, cb, len);
> +        conv.convert(bb, cb, bb.getLength());
>          bb.setOffset(bb.getEnd());
>  
>          return cb.getLength();

This seems to work for me. It should be equivalent to the value returned
by the available method, since the value passed is the same (it is the
amount of bytes which have been read).

Rémy



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


Mime
View raw message