Fixed filenames in parse_options()
This commit is contained in:
		
							parent
							
								
									c399c1a085
								
							
						
					
					
						commit
						45db2881e2
					
				| @ -40,9 +40,6 @@ void print_version() { | |||||||
| void parse_options(int argc, char **argv) { | void parse_options(int argc, char **argv) { | ||||||
| 	int opt; | 	int opt; | ||||||
| 
 | 
 | ||||||
| 	_options.filenames = (const char**) argv + 1; |  | ||||||
| 	_options.filecnt = argc - 1; |  | ||||||
| 
 |  | ||||||
| 	while ((opt = getopt(argc, argv, "hv")) != -1) { | 	while ((opt = getopt(argc, argv, "hv")) != -1) { | ||||||
| 		switch (opt) { | 		switch (opt) { | ||||||
| 			case '?': | 			case '?': | ||||||
| @ -56,4 +53,7 @@ void parse_options(int argc, char **argv) { | |||||||
| 				exit(0); | 				exit(0); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  | 
 | ||||||
|  | 	_options.filenames = (const char**) argv + optind; | ||||||
|  | 	_options.filecnt = argc - optind; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bert
						Bert