diff --git a/mozilla/string/obsolete/nsString.cpp b/mozilla/string/obsolete/nsString.cpp index 9109582b05d..f4a5f6f1ec8 100644 --- a/mozilla/string/obsolete/nsString.cpp +++ b/mozilla/string/obsolete/nsString.cpp @@ -1082,7 +1082,10 @@ void nsCString::AppendWithConversion( const PRUnichar* aBuffer, PRInt32 aLength aLength = nsCharTraits::length(aBuffer); if ( aLength > 0 ) - StrAppend(*this, temp, 0, aLength); + { + temp.mLength = aLength; + StrAppend(*this, temp, 0, aLength); + } } /** diff --git a/mozilla/xpcom/ds/nsString.cpp b/mozilla/xpcom/ds/nsString.cpp index 9109582b05d..f4a5f6f1ec8 100644 --- a/mozilla/xpcom/ds/nsString.cpp +++ b/mozilla/xpcom/ds/nsString.cpp @@ -1082,7 +1082,10 @@ void nsCString::AppendWithConversion( const PRUnichar* aBuffer, PRInt32 aLength aLength = nsCharTraits::length(aBuffer); if ( aLength > 0 ) - StrAppend(*this, temp, 0, aLength); + { + temp.mLength = aLength; + StrAppend(*this, temp, 0, aLength); + } } /** diff --git a/mozilla/xpcom/string/obsolete/nsString.cpp b/mozilla/xpcom/string/obsolete/nsString.cpp index 9109582b05d..f4a5f6f1ec8 100644 --- a/mozilla/xpcom/string/obsolete/nsString.cpp +++ b/mozilla/xpcom/string/obsolete/nsString.cpp @@ -1082,7 +1082,10 @@ void nsCString::AppendWithConversion( const PRUnichar* aBuffer, PRInt32 aLength aLength = nsCharTraits::length(aBuffer); if ( aLength > 0 ) - StrAppend(*this, temp, 0, aLength); + { + temp.mLength = aLength; + StrAppend(*this, temp, 0, aLength); + } } /**