Fix crasher bug 158796, r=jkeiser, sr=jst, a=asa

This commit is contained in:
smontagu@netscape.com 2007-06-28 13:02:47 -07:00
parent b3e3692694
commit 2a0acff134

View File

@ -255,7 +255,7 @@ nsresult ArabicShaping(const PRUnichar* aString, PRUint32 aLen,
PRUnichar* aBuf, PRUint32 *aBufLen,
PRBool aInputLogical, PRBool aOutputLogical)
{
nsAutoString tempString(aString);
nsAutoString tempString(aString, aLen);
PRUnichar *tempBuf = NS_CONST_CAST(PRUnichar*, tempString.get());
if (aInputLogical) {
ReverseString(tempBuf, aLen);