activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r512092 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/BaseDataStreamMarshaller.cpp
Date Tue, 27 Feb 2007 00:49:59 GMT
Author: tabish
Date: Mon Feb 26 16:49:58 2007
New Revision: 512092

URL: http://svn.apache.org/viewvc?view=rev&rev=512092
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Hack to fix tightMarshalString

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/BaseDataStreamMarshaller.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/BaseDataStreamMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/BaseDataStreamMarshaller.cpp?view=diff&rev=512092&r1=512091&r2=512092
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/BaseDataStreamMarshaller.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/BaseDataStreamMarshaller.cpp
Mon Feb 26 16:49:58 2007
@@ -281,7 +281,7 @@
             // If we verified it only holds ascii values
             if( bs->readBoolean() ) {
                 dataOut->writeShort( (short)value.length() );
-                dataOut->writeBytes( value );
+                dataOut->write( (const unsigned char*)value.c_str(), 0, value.length()
);
             } else {
                 dataOut->writeChars( value );
             }



Mime
View raw message