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:
parent
fa0a29b587
commit
202dcde116
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user