fix the bustage (bug 233485 follow-up)

git-svn-id: svn://10.0.0.236/trunk@152936 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jshin%mailaps.org 2004-02-19 12:01:52 +00:00
parent fa0a29b587
commit 202dcde116

View File

@ -690,7 +690,7 @@ static void CopyUTF8toUTF16NFC(const nsACString& aSrc, nsAString& aResult)
nsAutoBuffer<UniChar, 512> buffer;
if (buffer.EnsureElemCapacity(length)) {
CFStringGetCharacters(inStr, CFRangeMake(0, length), buffer.get());
aResult.Assign(buffer, length);
aResult.Assign(buffer.get(), length);
}
else
CopyUTF8toUTF16(aSrc, aResult);