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