summaryrefslogtreecommitdiff
path: root/src/Fl_Simple_Terminal.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-05-19 18:57:18 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-05-19 18:57:18 +0200
commit89454508a2024da5fde5db309ede45a0af9cdeb3 (patch)
tree89a42c469312b86afc1c81d28aeccfb9a7b058fa /src/Fl_Simple_Terminal.cxx
parent033880673addca9c96abcfb09e68f855b6712b56 (diff)
Fix Fl_Simple_Terminal::append(str, len) assumes a null terminated string (#728)
Diffstat (limited to 'src/Fl_Simple_Terminal.cxx')
-rw-r--r--src/Fl_Simple_Terminal.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Simple_Terminal.cxx b/src/Fl_Simple_Terminal.cxx
index b8f1f403d..1f6933326 100644
--- a/src/Fl_Simple_Terminal.cxx
+++ b/src/Fl_Simple_Terminal.cxx
@@ -910,7 +910,7 @@ void Fl_Simple_Terminal::append(const char *s, int len) {
append_ansi(s, len);
} else {
// raw append
- buf->append(s);
+ buf->append(s, len);
lines_ += ::strcnt(s, '\n'); // count total line feeds in string added
}
enforce_history_lines();