activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r425575 - /incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp
Date Wed, 26 Jul 2006 00:48:59 GMT
Author: nmittler
Date: Tue Jul 25 17:48:59 2006
New Revision: 425575

URL: http://svn.apache.org/viewvc?rev=425575&view=rev
Log:
Patch for AMQ-823 - fixing offset in ByteArrayOutputStream::write()

Modified:
    incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp

Modified: incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp?rev=425575&r1=425574&r2=425575&view=diff
==============================================================================
--- incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp (original)
+++ incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp Tue
Jul 25 17:48:59 2006
@@ -93,7 +93,7 @@
     for( int i = index ; i < length ; i++, offset++ )
     {
         // Check for EOF offset
-        if( offset > bodySize )
+        if( offset >= bodySize )
             expandBody() ;
 
         body[offset] = buf[i] ;



Mime
View raw message