mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
memmove() the right size when expanding tree.
This commit is contained in:
parent
36976ce5e6
commit
dd8ba0b5a8
@ -497,7 +497,7 @@ window_choose_expand(struct window_pane *wp, struct session *s, u_int pos)
|
||||
sizeof *data->list);
|
||||
memmove(&data->list[pos + 2],
|
||||
&data->list[pos + 1],
|
||||
(data->list_size - pos) *
|
||||
(data->list_size - (pos + 1)) *
|
||||
sizeof *data->list);
|
||||
memcpy(&data->list[pos + 1],
|
||||
&data->old_list[i],
|
||||
|
Loading…
Reference in New Issue
Block a user