directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r226658 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java
Date Sun, 31 Jul 2005 16:11:37 GMT
Author: elecharny
Date: Sun Jul 31 09:11:34 2005
New Revision: 226658

URL: http://svn.apache.org/viewcvs?rev=226658&view=rev
Log:
Fixed a bug in the generation of integer values (the size was not
correctly calculated)

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java?rev=226658&r1=226657&r2=226658&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java Sun
Jul 31 09:11:34 2005
@@ -269,7 +269,7 @@
         try
         {
             buffer.put( LdapConstants.INTEGER_TAG );
-            buffer.put( Length.getBytes( value ) );
+            buffer.put( Length.getBytes( Length.getNbBytes( value ) ) );
             buffer.put( getBytes( value ) );
         }
         catch ( BufferOverflowException boe )



Mime
View raw message