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:
pinkerton%netscape.com 2002-05-03 13:57:12 +00:00
parent 46262a3fef
commit abbe236093
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: