Fix boundary error.

X-SVN-Rev: 4128
This commit is contained in:
Syn Wee Quek 2001-03-16 02:35:31 +00:00
parent ac36a8b5d7
commit 57da770f26

View File

@ -981,7 +981,7 @@ uint32_t getSpecialPrevCE(const UCollator *coll, uint32_t CE,
}
UChar *sourceCopy = source->string;
UChar *targetCopy = source->writableBuffer;
while (sourceCopy <= strend) {
while (sourceCopy < strend) {
if (UCOL_ISTHAIPREVOWEL(*sourceCopy) &&
/* This is the combination that needs to be swapped */
UCOL_ISTHAIBASECONSONANT(*(sourceCopy + 1))) {