xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject svn commit: r125324 - /xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java
Date Sun, 16 Jan 2005 01:03:20 GMT
Author: cezar
Date: Sat Jan 15 17:03:18 2005
New Revision: 125324

URL: http://svn.apache.org/viewcvs?view=rev&rev=125324
Log:
Saver bug fix.

checkintest: passes
Modified:
   xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java

Modified: xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java
Url: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java?view=diff&rev=125324&p1=xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java&r1=125323&p2=xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java&r2=125324
==============================================================================
--- xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java	(original)
+++ xmlbeans/trunk/src/newstore2/org/apache/xmlbeans/impl/newstore2/Saver.java	Sat Jan 15
17:03:18 2005
@@ -2118,7 +2118,7 @@
 
                     while ( c._cchSrc > 0 )
                     {
-                        int cch = java.lang.Math.max( _buf.length, c._cchSrc );
+                        int cch = java.lang.Math.min( _buf.length, c._cchSrc );
 
                         CharUtil.getChars( _buf, 0, src, c._offSrc, cch );
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message