mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +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