Skip to content

Commit

Permalink
GUACAMOLE-377: Correct regression in terminal assertion (too strict b…
Browse files Browse the repository at this point in the history
…y one column).
  • Loading branch information
mike-jumper committed Sep 29, 2024
1 parent f5ecb6c commit 8146e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8146e17

Please sign in to comment.