From b7e4b22419f1d0c73e209d3723443793a73eb313 Mon Sep 17 00:00:00 2001 From: corentin-soriano Date: Wed, 19 Jun 2024 08:37:23 +0200 Subject: [PATCH] GUACAMOLE-1632: Don't fill empty lines with spaces. --- src/terminal/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/select.c b/src/terminal/select.c index b0baeb073..f4e72a7c2 100644 --- a/src/terminal/select.c +++ b/src/terminal/select.c @@ -298,7 +298,7 @@ static void guac_terminal_clipboard_append_row(guac_terminal* terminal, end = buffer_row->length - 1; /* Get position of last not null char */ - for (eol = buffer_row->length; eol > start; eol--) { + for (eol = buffer_row->length - 1; eol > start; eol--) { if (buffer_row->characters[eol].value != 0) break;