Kaydet (Commit) 1cbe2313 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Terminating NUL at end of its buffer is not considered part of OUString

Change-Id: I3eb11659d1bd45327b66abb567e3ccf132d31915
üst 8ce49bb3
...@@ -540,7 +540,7 @@ sal_Bool SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType, ...@@ -540,7 +540,7 @@ sal_Bool SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
// All other will remain TT_UNKNOWN // All other will remain TT_UNKNOWN
// Save end position // Save end position
rpEndPos = mpActualPos; rpEndPos = *mpActualPos == CHAR_EOF ? mpActualPos - 1 : mpActualPos;
return sal_True; return sal_True;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment