mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	memmove() the right size when expanding tree.
This commit is contained in:
		@@ -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],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user