From 131cbc2ca0d21c691b7544943af9268ffcd73b69 Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Thu, 12 Dec 2002 01:05:53 +0000 Subject: [PATCH] fix for 184308: cf_html bustage. fencepost error. r=brade; sr=bz; a=asa git-svn-id: svn://10.0.0.236/trunk@135154 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp index 72a965593a8..d9eabe31566 100644 --- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp @@ -883,7 +883,7 @@ nsHTMLEditor::ParseCFHTML(nsCString & aCfhtml, PRUnichar **aStuffToPaste, PRUnic // translate platform linebreaks for context newStr = 0; - oldLengthInChars = cntxtUcs2Str.Length(); // +1 to include null terminator + oldLengthInChars = cntxtUcs2Str.Length() + 1; // +1 to include null terminator newLengthInChars = 0; *aCfcontext = nsLinebreakConverter::ConvertUnicharLineBreaks(cntxtUcs2Str.get(), nsLinebreakConverter::eLinebreakAny,