diff options
author | Rob Austein <sra@hactrn.net> | 2013-12-20 02:15:50 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-12-20 02:15:50 +0000 |
commit | a94447e5db764aedc645504b882853109c71a45a (patch) | |
tree | 36a8a6977b468ad5e6ce5ec1fce02742e0aad23c /utils | |
parent | 47bf2cf77e8a585fd592b31aedacd1e1f8a8bc36 (diff) |
If we're going to use getopt(), perhaps we should account for the arguments it consumes?
Doh.
svn path=/trunk/; revision=5611
Diffstat (limited to 'utils')
-rw-r--r-- | utils/print_rpki_manifest/print_rpki_manifest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/print_rpki_manifest/print_rpki_manifest.c b/utils/print_rpki_manifest/print_rpki_manifest.c index 508850a3..ef0e67d2 100644 --- a/utils/print_rpki_manifest/print_rpki_manifest.c +++ b/utils/print_rpki_manifest/print_rpki_manifest.c @@ -189,6 +189,9 @@ int main (int argc, char *argv[]) } } + argc -= optind; + argv += optind; + while (argc-- > 0) result |= read_manifest(*argv++, print_cms, 1, 1) == NULL; return result; |