From 8146e171f7e6ac0e244d06d9c60e12849d5e5cc5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 29 Sep 2024 13:58:07 -0700 Subject: [PATCH] GUACAMOLE-377: Correct regression in terminal assertion (too strict by one column). --- src/terminal/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/buffer.c b/src/terminal/buffer.c index e558d0345..995ce3295 100644 --- a/src/terminal/buffer.c +++ b/src/terminal/buffer.c @@ -535,7 +535,7 @@ void guac_terminal_buffer_set_cursor(guac_terminal_buffer* buffer, int row, column = guac_terminal_fit_to_range(column, 0, GUAC_TERMINAL_MAX_COLUMNS - 1); guac_terminal_buffer_row_expand(buffer_row, column + 1, &buffer->default_character); - GUAC_ASSERT(buffer_row->length > column + 1); + GUAC_ASSERT(buffer_row->length >= column + 1); buffer_row->characters[column].attributes.cursor = is_cursor;