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:
Nathan Christopher Mittler 2006-07-26 00:48:59 +00:00
parent 95fec7d0db
commit 07b3cb329b
1 changed files with 1 additions and 1 deletions

View File

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