From ea2eb4442148579be0dec4c18c3033ddd2d4ac32 Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Sun, 30 Aug 2015 01:18:17 +0200 Subject: Fix the --select-types and --sources long options This bug was found by the awesome american fuzzy lop! --- whois.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'whois.c') diff --git a/whois.c b/whois.c index 903a89d..49df0ad 100644 --- a/whois.c +++ b/whois.c @@ -102,9 +102,9 @@ int main(int argc, char *argv[]) {"no-referenced", no_argument, NULL, 'r'}, {"no-filtering", no_argument, NULL, 'B'}, {"no-grouping", no_argument, NULL, 'G'}, - {"select-types", no_argument, NULL, 'T'}, + {"select-types", required_argument, NULL, 'T'}, {"all-sources", no_argument, NULL, 'a'}, - {"sources", no_argument, NULL, 's'}, + {"sources", required_argument, NULL, 's'}, {"types", no_argument, NULL, 12 }, /* -q */ {"ripe-version", no_argument, NULL, 12 }, /* -q */ {"list-sources", no_argument, NULL, 12 }, /* -q */ -- cgit v1.2.3