diff options
-rw-r--r-- | include/oox/helper/binaryoutputstream.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oox/helper/binaryoutputstream.hxx b/include/oox/helper/binaryoutputstream.hxx index 0882821e9834..56d806577731 100644 --- a/include/oox/helper/binaryoutputstream.hxx +++ b/include/oox/helper/binaryoutputstream.hxx @@ -84,7 +84,7 @@ template< typename Type > void BinaryOutputStream::writeArray( Type* opnArray, sal_Int32 nElemCount ) { sal_Int32 nWriteSize = getLimitedValue< sal_Int32, sal_Int32 >( nElemCount, 0, SAL_MAX_INT32 / sizeof( Type ) ) * sizeof( Type ); - ByteOrderConverter::convertLittleEndianArray( opnArray, static_cast< size_t >( nWriteSize ) ); + ByteOrderConverter::convertLittleEndianArray( opnArray, static_cast< size_t >( nElemCount ) ); writeMemory( opnArray, nWriteSize, sizeof( Type ) ); } |