Bug 341084 use a unicode buffer rather than AssignWithConversion
r+sr=bz git-svn-id: svn://10.0.0.236/trunk@199712 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -408,7 +408,7 @@ inCSSValueSearch::EqualizeURL(nsAutoString* aURL)
|
||||
if (mNormalizeChromeURLs) {
|
||||
if (aURL->Find("chrome://", PR_FALSE, 0, 1) >= 0) {
|
||||
PRUint32 len = aURL->Length();
|
||||
char* result = new char[len-8];
|
||||
PRUnichar* result = new PRUnichar[len-8];
|
||||
const PRUnichar* src = aURL->get();
|
||||
PRUint32 i = 9;
|
||||
PRUint32 milestone = 0;
|
||||
@@ -426,7 +426,7 @@ inCSSValueSearch::EqualizeURL(nsAutoString* aURL)
|
||||
}
|
||||
result[i-9-s] = 0;
|
||||
|
||||
aURL->AssignWithConversion(result);
|
||||
aURL->Assign(result);
|
||||
delete [] result;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user