From 5dbfa4944ba875261e90ce7dca74eb486ffe357f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 18 Feb 2006 12:20:08 +0000 Subject: Fixed off-by-one. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index bd0fc9fba..8780a128f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4854,7 +4854,7 @@ void Editor::CopyRangeToClipboard(int start, int end) { void Editor::CopyText(int length, const char *text) { SelectionText selectedText; - selectedText.Copy(text, length, + selectedText.Copy(text, length + 1, pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, false); CopyToClipboard(selectedText); } -- cgit v1.2.3