You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2006/07/26 02:48:59 UTC

svn commit: r425575 - /incubator/activemq/trunk/openwire-cpp/src/main/cpp/ppr/io/ByteArrayOutputStream.cpp

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] ;