casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
This commit is contained in:
		
							
								
								
									
										2
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dmenu.c
									
									
									
									
									
								
							@ -624,7 +624,7 @@ setup(Bool bottom) {
 | 
				
			|||||||
int
 | 
					int
 | 
				
			||||||
strcaseido(const char *text, const char *pattern) {
 | 
					strcaseido(const char *text, const char *pattern) {
 | 
				
			||||||
	for(; *text && *pattern; text++)
 | 
						for(; *text && *pattern; text++)
 | 
				
			||||||
		if (tolower(*text) == tolower(*pattern))
 | 
							if(tolower((int)*text) == tolower((int)*pattern))
 | 
				
			||||||
			pattern++;
 | 
								pattern++;
 | 
				
			||||||
	return !*pattern;
 | 
						return !*pattern;
 | 
				
			||||||
}                                  
 | 
					}                                  
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user