summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-07-18 22:07:02 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-07-21 08:44:19 +0000
commite7bd0484228beb4529e84742faf56f813dca495a (patch)
tree802c410ceff0bc98120e5b8b046a367fda610f3f
parent665e7479205647bb0c8feceef585c29c2ac46a5b (diff)
(related: fdo#78502) writerfilter: RTF import: fix invalid string copy
... in leveltext destination. Change-Id: I74de6d14170130bf33923854a0c9851dc7cc390f (cherry picked from commit b94bd40b915ab32d18d43fc60dfda932e4e00ca8) Reviewed-on: https://gerrit.libreoffice.org/10397 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 66abe80dca80..73eb3f271df7 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -4278,7 +4278,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;