From 7452f1816e7fa347fc90c7e972468b80bbca3e31 Mon Sep 17 00:00:00 2001 From: dario Date: Tue, 14 Apr 1998 19:05:09 +0000 Subject: [PATCH] fixing text to be proper terminated --- layout/html/base/src/nsTextContent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/html/base/src/nsTextContent.cpp b/layout/html/base/src/nsTextContent.cpp index 182303c9be1..1c159858264 100644 --- a/layout/html/base/src/nsTextContent.cpp +++ b/layout/html/base/src/nsTextContent.cpp @@ -1398,7 +1398,7 @@ nsresult Text::RemoveChild(nsIDOMNode *oldChild) nsresult Text::GetData(nsString &aString) { if (nsnull != mText) { - aString = mText; + aString.SetString(mText, mLength); } return NS_OK;