diff options
-rw-r--r-- | io/source/TextInputStream/TextInputStream.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx index 94710fe6c8d5..287783ca3fad 100644 --- a/io/source/TextInputStream/TextInputStream.cxx +++ b/io/source/TextInputStream/TextInputStream.cxx @@ -228,8 +228,7 @@ OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimi aRetStr = OUString( mvBuffer.data(), nCopyLen ); // Copy rest of buffer - memmove( mvBuffer.data(), mvBuffer.data() + nBufferReadPos, - (mnCharsInBuffer - nBufferReadPos) * sizeof( sal_Unicode ) ); + std::copy(mvBuffer.data() + nBufferReadPos, mvBuffer.data() + mnCharsInBuffer, mvBuffer.data()); mnCharsInBuffer -= nBufferReadPos; return aRetStr; |