activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r551572 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp
Date Thu, 28 Jun 2007 14:24:32 GMT
Author: tabish
Date: Thu Jun 28 07:24:31 2007
New Revision: 551572

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

Building Decaf lib

Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp?view=diff&rev=551572&r1=551571&r2=551572
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/DataInputStream.cpp Thu Jun 28
07:24:31 2007
@@ -305,7 +305,7 @@
     try {
         std::vector<unsigned char> buffer;
         unsigned short length = readUnsignedShort();
-        buffer.resize(length);
+        buffer.resize(length + 1);  // Add one for a null charactor.
 
         std::size_t n = 0;
         while( n < length ) {



Mime
View raw message