directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r349617 - /directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java
Date Tue, 29 Nov 2005 04:15:17 GMT
Author: trustin
Date: Mon Nov 28 20:15:12 2005
New Revision: 349617

URL: http://svn.apache.org/viewcvs?rev=349617&view=rev
Log:
Fixed that ByteBuffer.putObject() writes a wrong length.

Modified:
    directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java

Modified: directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java?rev=349617&r1=349616&r2=349617&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java Mon Nov 28 20:15:12
2005
@@ -1687,7 +1687,7 @@
             // Fill the length field
             int newPos = position();
             position( oldPos );
-            putInt( newPos - oldPos );
+            putInt( newPos - oldPos - 4 );
             position( newPos );
             return this;
         }



Mime
View raw message