From 0422415aade1229badbba4ff7fae0479df90dd08 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Sun, 20 Aug 2000 20:41:31 +0000 Subject: [PATCH] Fix nsCString::AppendWithConversion() to work. git-svn-id: svn://10.0.0.236/trunk@76760 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/obsolete/nsString.cpp | 5 ++++- mozilla/xpcom/ds/nsString.cpp | 5 ++++- mozilla/xpcom/string/obsolete/nsString.cpp | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) 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); + } } /**