diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-22 15:55:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-22 15:55:41 +0200 |
commit | 1cbe2313edda8a04f0fe233b4a29ef4e2485f557 (patch) | |
tree | 983234d66116b0813214ea442db8cc730bb97017 /comphelper | |
parent | 8ce49bb3f45d2dbae594b24c4a3b936cc4feaf09 (diff) |
Terminating NUL at end of its buffer is not considered part of OUString
Change-Id: I3eb11659d1bd45327b66abb567e3ccf132d31915
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/syntaxhighlight.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx index 1995cd413d36..82fc060894cc 100644 --- a/comphelper/source/misc/syntaxhighlight.cxx +++ b/comphelper/source/misc/syntaxhighlight.cxx @@ -540,7 +540,7 @@ sal_Bool SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType, // All other will remain TT_UNKNOWN // Save end position - rpEndPos = mpActualPos; + rpEndPos = *mpActualPos == CHAR_EOF ? mpActualPos - 1 : mpActualPos; return sal_True; } |