mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Reduce len when moving past spaces in OSC 11 parameter.
This commit is contained in:
		
							
								
								
									
										4
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								input.c
									
									
									
									
									
								
							@@ -2460,8 +2460,10 @@ input_osc_parse_colour(const char *p)
 | 
				
			|||||||
		    (1 - m) * (1 - k) * 255,
 | 
							    (1 - m) * (1 - k) * 255,
 | 
				
			||||||
		    (1 - y) * (1 - k) * 255);
 | 
							    (1 - y) * (1 - k) * 255);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		while (*p == ' ')
 | 
							while (len != 0 && *p == ' ') {
 | 
				
			||||||
			p++;
 | 
								p++;
 | 
				
			||||||
 | 
								len--;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		while (len != 0 && p[len - 1] == ' ')
 | 
							while (len != 0 && p[len - 1] == ' ')
 | 
				
			||||||
			len--;
 | 
								len--;
 | 
				
			||||||
		copy = xstrndup(p, len);
 | 
							copy = xstrndup(p, len);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user