Use computed word-len not out parameter that is unset at the time of usage

This commit is contained in:
kipp%netscape.com 1998-10-26 17:27:35 +00:00
parent b987962daf
commit a5b11a0e33
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (!aInWord && !isWhitespace &&
(NS_STYLE_TEXT_TRANSFORM_CAPITALIZE == mTextTransform)) {
PRInt32 n = aWordLenResult;
PRInt32 n = wordLen;
PRUnichar* bp = mBuffer;
for (; --n >= 0; bp++) {
PRUnichar ch = *bp;

View File

@ -365,7 +365,7 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (!aInWord && !isWhitespace &&
(NS_STYLE_TEXT_TRANSFORM_CAPITALIZE == mTextTransform)) {
PRInt32 n = aWordLenResult;
PRInt32 n = wordLen;
PRUnichar* bp = mBuffer;
for (; --n >= 0; bp++) {
PRUnichar ch = *bp;