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

Change-Id: I3eb11659d1bd45327b66abb567e3ccf132d31915
This commit is contained in:
Stephan Bergmann
2013-10-22 15:55:41 +02:00
parent 8ce49bb3f4
commit 1cbe2313ed
+1 -1
View File
@@ -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;
}