mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-30 23:46:52 +00:00 
			
		
		
		
	Cap maximum thumbnail count to 1000
This commit is contained in:
		
							parent
							
								
									d034851ecb
								
							
						
					
					
						commit
						cdc4c0ad3d
					
				| @ -124,6 +124,9 @@ int scan_args_validate(scan_args_t *args, int argc, const char **argv) { | ||||
|         args->tn_count = DEFAULT_THUMBNAIL_COUNT; | ||||
|     } else if (args->tn_count == OPTION_VALUE_DISABLE) { | ||||
|         args->tn_count = 0; | ||||
|     } else if (args->tn_count > 1000) { | ||||
|         printf("Invalid value --thumbnail-count argument: %d. Must be <= 1000.\n", args->tn_size); | ||||
|         return 1; | ||||
|     } | ||||
| 
 | ||||
|     if (args->content_size == OPTION_VALUE_UNSPECIFIED) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user