pki: Make sure options array passed to getopt_long() ends with a NULL entry
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ static options_t *options;
|
||||
/**
|
||||
* Global options used by all subcommands
|
||||
*/
|
||||
static struct option command_opts[MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS];
|
||||
static struct option command_opts[(MAX_COMMANDS > MAX_OPTIONS ? MAX_COMMANDS : MAX_OPTIONS) + 1];
|
||||
|
||||
/**
|
||||
* Global optstring used by all subcommands
|
||||
|
||||
Reference in New Issue
Block a user