Terminating NUL at end of its buffer is not considered part of OUString
Change-Id: I3eb11659d1bd45327b66abb567e3ccf132d31915
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user