mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Trim "s from process names, from Gregory Pakosz.
This commit is contained in:
		
							
								
								
									
										4
									
								
								names.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								names.c
									
									
									
									
									
								
							@@ -142,6 +142,10 @@ parse_window_name(const char *in)
 | 
				
			|||||||
	char	*copy, *name, *ptr;
 | 
						char	*copy, *name, *ptr;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	name = copy = xstrdup(in);
 | 
						name = copy = xstrdup(in);
 | 
				
			||||||
 | 
						if (*name == '"')
 | 
				
			||||||
 | 
							name++;
 | 
				
			||||||
 | 
						name[strcspn (name, "\"")] = '\0';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
 | 
						if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
 | 
				
			||||||
		name = name + (sizeof "exec ") - 1;
 | 
							name = name + (sizeof "exec ") - 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user