summaryrefslogtreecommitdiffstats
path: root/comphelper/source/streaming/memorystream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/streaming/memorystream.cxx')
-rw-r--r--comphelper/source/streaming/memorystream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx
index 9702a9dce81d..61afcdc85391 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -126,7 +126,7 @@ sal_Int32 SAL_CALL UNOMemoryStream::readBytes( Sequence< sal_Int8 >& aData, sal_
if( nBytesToRead )
{
sal_Int8* pData = &(*maData.begin());
- sal_Int8* pCursor = &((pData)[mnCursor]);
+ sal_Int8* pCursor = &(pData[mnCursor]);
memcpy( static_cast<void*>(aData.getArray()), static_cast<void*>(pCursor), nBytesToRead );
mnCursor += nBytesToRead;