cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r654663 - /cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java
Date Fri, 09 May 2008 01:43:03 GMT
Author: bimargulies
Date: Thu May  8 18:43:02 2008
New Revision: 654663

URL: http://svn.apache.org/viewvc?rev=654663&view=rev
Log:
Fix CXF-1571.

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java?rev=654663&r1=654662&r2=654663&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java Thu May  8 18:43:02
2008
@@ -267,7 +267,7 @@
             int x = fin.read(bytes);
             while (x != -1) {
                 if ((count + x) > limit) {
-                    x = count - limit;
+                    x = limit - count;
                 }
                 out.append(new String(bytes, 0, x));
                 count += x;



Mime
View raw message