mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Change to size_t in swaylock's get_config_path
This commit is contained in:
		
							parent
							
								
									296889f3d7
								
							
						
					
					
						commit
						d375f6af18
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -716,7 +716,7 @@ static char *get_config_path(void) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wordexp_t p;
 | 
						wordexp_t p;
 | 
				
			||||||
	char *path;
 | 
						char *path;
 | 
				
			||||||
	for (int i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) {
 | 
						for (size_t i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) {
 | 
				
			||||||
		if (wordexp(config_paths[i], &p, 0) == 0) {
 | 
							if (wordexp(config_paths[i], &p, 0) == 0) {
 | 
				
			||||||
			path = strdup(p.we_wordv[0]);
 | 
								path = strdup(p.we_wordv[0]);
 | 
				
			||||||
			wordfree(&p);
 | 
								wordfree(&p);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue