mirror of https://github.com/apache/activemq.git
Patch for AMQ-823 - fixing offset in ByteArrayOutputStream::write()
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@425575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
95fec7d0db
commit
07b3cb329b
|
@ -93,7 +93,7 @@ int ByteArrayOutputStream::write(const char* buf, int index, int length) throw(I
|
|||
for( int i = index ; i < length ; i++, offset++ )
|
||||
{
|
||||
// Check for EOF offset
|
||||
if( offset > bodySize )
|
||||
if( offset >= bodySize )
|
||||
expandBody() ;
|
||||
|
||||
body[offset] = buf[i] ;
|
||||
|
|
Loading…
Reference in New Issue