Fix NS_ConvertUTF8ToUCF2 correctly work with substrings. patch by jag, r=pink
sr=scc, bug#141866 git-svn-id: svn://10.0.0.236/trunk@120694 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
46262a3fef
commit
abbe236093
@ -567,7 +567,7 @@ class NS_COM NS_ConvertUTF8toUCS2
|
||||
|
||||
NS_ConvertUTF8toUCS2( const char* aCString, PRUint32 aLength )
|
||||
{
|
||||
Init( nsDependentCString( aCString, aLength ) );
|
||||
Init( Substring( aCString, aCString + aLength ) );
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
@ -567,7 +567,7 @@ class NS_COM NS_ConvertUTF8toUCS2
|
||||
|
||||
NS_ConvertUTF8toUCS2( const char* aCString, PRUint32 aLength )
|
||||
{
|
||||
Init( nsDependentCString( aCString, aLength ) );
|
||||
Init( Substring( aCString, aCString + aLength ) );
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user