jmuehlner commented on code in PR #512:
URL: https://github.com/apache/guacamole-server/pull/512#discussion_r1633634578
##########
src/terminal/buffer.c:
##########
@@ -164,7 +164,7 @@ void guac_terminal_buffer_copy_rows(guac_terminal_buffer*
buffer,
guac_terminal_buffer_row* dst_row =
guac_terminal_buffer_get_row(buffer, current_row + offset, src_row->length);
/* Copy data */
- memcpy(dst_row->characters, src_row->characters,
sizeof(guac_terminal_char) * src_row->length);
+ memcpy(dst_row->characters, src_row->characters,
sizeof(guac_terminal_char) * src_row->length + 1);
Review Comment:
It doesn't look like the storage space in `dst_row->characters` actually got
any bigger - you'll need to allocate additional space for this newly added
character.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]