summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-06-24 13:31:27 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-24 11:59:58 +0000
commitf4ba6e35085ced7fcf29276590ffd631280d112f (patch)
tree5f31bbb979ae563ffd300cb1a958932ef3fb2494 /include
parent2a442f19faa52aef87e56d6bd3f8e38f7dec9572 (diff)
convert the right number of elements
(cherry picked from commit e3a8e4f221fca5f67f4d6caf17f3bec39b13e3d5) Change-Id: I375d03ad880d348be64a04613e612e19bf2f4e1c Signed-off-by: David Tardon <dtardon@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/4476 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/helper/binaryoutputstream.hxx2
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 ) );
}