tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1075718 - /tomcat/trunk/test/org/apache/catalina/startup/TestTomcat.java
Date Tue, 01 Mar 2011 08:56:48 GMT
Author: markt
Date: Tue Mar  1 08:56:48 2011
New Revision: 1075718

URL: http://svn.apache.org/viewvc?rev=1075718&view=rev
Log:
Fix FindBugs warning 

Modified:
    tomcat/trunk/test/org/apache/catalina/startup/TestTomcat.java

Modified: tomcat/trunk/test/org/apache/catalina/startup/TestTomcat.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/startup/TestTomcat.java?rev=1075718&r1=1075717&r2=1075718&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/startup/TestTomcat.java (original)
+++ tomcat/trunk/test/org/apache/catalina/startup/TestTomcat.java Tue Mar  1 08:56:48 2011
@@ -113,8 +113,8 @@ public class TestTomcat extends TomcatBa
                 try {
                     is = conn.getInputStream();
                     reader = new InputStreamReader(is);
-                    reader.read(cbuf);
-                    res.getWriter().write(cbuf);
+                    int len = reader.read(cbuf);
+                    res.getWriter().write(cbuf, 0, len);
                 } finally {
                     if (reader != null) {
                         try { reader.close(); } catch(IOException ioe) {/*Ignore*/}



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


Mime
View raw message