mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Give each paste buffer a size member instead of requiring them to be
zero-terminated.
This commit is contained in:
@ -55,7 +55,7 @@ cmd_list_buffers_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
|
||||
idx = 0;
|
||||
while ((pb = paste_walk_stack(&s->buffers, &idx)) != NULL) {
|
||||
size = strlen(pb->data);
|
||||
size = pb->size;
|
||||
|
||||
/* Translate the first 50 characters. */
|
||||
len = size;
|
||||
|
Reference in New Issue
Block a user