diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3fabf1ab7..44226d11b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5889,11 +5889,11 @@ void Editor::CopySelectionRange(SelectionText *ss, bool allowLineCopy) { char *textWithEndl = new char[textLen]; textWithEndl[0] = '\0'; if (text) - strncat(textWithEndl, text, textLen); + strcat(textWithEndl, text); if (pdoc->eolMode != SC_EOL_LF) - strncat(textWithEndl, "\r", textLen); + strcat(textWithEndl, "\r"); if (pdoc->eolMode != SC_EOL_CR) - strncat(textWithEndl, "\n", textLen); + strcat(textWithEndl, "\n"); ss->Set(textWithEndl, static_cast<int>(strlen(textWithEndl) + 1), pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, false, true); delete []text; |