mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Fix constness again, sigh.
This commit is contained in:
		
							
								
								
									
										8
									
								
								cmd.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								cmd.c
									
									
									
									
									
								
							@@ -1223,10 +1223,10 @@ cmd_find_pane_offset(const char *paneptr, struct winlink *wl)
 | 
			
		||||
char *
 | 
			
		||||
cmd_template_replace(const char *template, const char *s, int idx)
 | 
			
		||||
{
 | 
			
		||||
	char	 ch;
 | 
			
		||||
	char	*buf, *ptr;
 | 
			
		||||
	int	 replaced;
 | 
			
		||||
	size_t	 len;
 | 
			
		||||
	char	 	 ch, *buf;
 | 
			
		||||
	const char	*ptr;
 | 
			
		||||
	int		 replaced;
 | 
			
		||||
	size_t		 len;
 | 
			
		||||
 | 
			
		||||
	if (strstr(template, "%") == NULL)
 | 
			
		||||
		return (xstrdup(template));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user