diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-07-18 22:07:02 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-07-19 00:21:46 +0200 |
commit | b94bd40b915ab32d18d43fc60dfda932e4e00ca8 (patch) | |
tree | bb49c6a4d5989797aab6b1bbefb44f723a6b38dc | |
parent | dd664f2e10bdada705c78638fe95ad0869b7cb03 (diff) |
(related: fdo#78502) writerfilter: RTF import: fix invalid string copy
... in leveltext destination.
Change-Id: I74de6d14170130bf33923854a0c9851dc7cc390f
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index e7e3a4272b37..a40917246c6b 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -4827,7 +4827,7 @@ int RTFDocumentImpl::popState() // The first character is the length of the string (the rest should be ignored). sal_Int32 nLength(aStr.toChar()); OUString aValue; - if (nLength <= aStr.getLength()) + if (nLength < aStr.getLength()) aValue = aStr.copy(1, nLength); else aValue = aStr; |