mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Correctly adjust the end pointer for a two character terminator before
decoding OSC 52 response, from Daniel Ekloef in GitHub issue 2942.
This commit is contained in:
		@@ -1204,6 +1204,9 @@ tty_keys_clipboard(__unused struct tty *tty, const char *buf, size_t len,
 | 
			
		||||
	buf += 5;
 | 
			
		||||
	end -= 5;
 | 
			
		||||
 | 
			
		||||
	/* Adjust end so that it points to the start of the terminator. */
 | 
			
		||||
	end -= terminator - 1;
 | 
			
		||||
 | 
			
		||||
	/* Get the second argument. */
 | 
			
		||||
	while (end != 0 && *buf != ';') {
 | 
			
		||||
		buf++;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user