From 89454508a2024da5fde5db309ede45a0af9cdeb3 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 19 May 2023 18:57:18 +0200 Subject: Fix Fl_Simple_Terminal::append(str, len) assumes a null terminated string (#728) --- src/Fl_Simple_Terminal.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Simple_Terminal.cxx') 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(); -- cgit v1.2.3