mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	missing unsigned char casts areound tolower()
ok nicm
This commit is contained in:
		@@ -1030,7 +1030,7 @@ window_copy_search_up(struct window_pane *wp, const char *searchstr)
 | 
			
		||||
 | 
			
		||||
	cis = 1;
 | 
			
		||||
	for (ptr = searchstr; *ptr != '\0'; ptr++) {
 | 
			
		||||
		if (*ptr != tolower(*ptr)) {
 | 
			
		||||
		if (*ptr != tolower((u_char)*ptr)) {
 | 
			
		||||
			cis = 0;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
@@ -1097,7 +1097,7 @@ window_copy_search_down(struct window_pane *wp, const char *searchstr)
 | 
			
		||||
 | 
			
		||||
	cis = 1;
 | 
			
		||||
	for (ptr = searchstr; *ptr != '\0'; ptr++) {
 | 
			
		||||
		if (*ptr != tolower(*ptr)) {
 | 
			
		||||
		if (*ptr != tolower((u_char)*ptr)) {
 | 
			
		||||
			cis = 0;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user