From 2a0acff134829a6d3a278c084170abaccfd37295 Mon Sep 17 00:00:00 2001 From: "smontagu@netscape.com" Date: Thu, 28 Jun 2007 13:02:47 -0700 Subject: [PATCH] Fix crasher bug 158796, r=jkeiser, sr=jst, a=asa --- intl/unicharutil/util/nsBidiUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intl/unicharutil/util/nsBidiUtils.cpp b/intl/unicharutil/util/nsBidiUtils.cpp index 5af5e2620ead..111eb81a1db6 100644 --- a/intl/unicharutil/util/nsBidiUtils.cpp +++ b/intl/unicharutil/util/nsBidiUtils.cpp @@ -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);