mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not run off end of string when stripping delays, reported by Dave
Vandervies.
This commit is contained in:
		@@ -302,6 +302,8 @@ tty_term_strip(const char *s)
 | 
			
		||||
				ptr++;
 | 
			
		||||
			if (*ptr == '>')
 | 
			
		||||
				ptr++;
 | 
			
		||||
			if (*ptr == '\0')
 | 
			
		||||
				break;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		buf[len++] = *ptr;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user