fix bug parsing `no'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2634 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -172,7 +172,7 @@ arg_match_long(struct getargs *args, size_t num_args,
|
|||||||
partial = &args[i];
|
partial = &args[i];
|
||||||
optarg = p + p_len;
|
optarg = p + p_len;
|
||||||
} else if (args[i].type == arg_flag
|
} else if (args[i].type == arg_flag
|
||||||
&& strncmp (argv, "no-", 3) == 0) {
|
&& strncmp (p, "no-", 3) == 0) {
|
||||||
negate = !negate;
|
negate = !negate;
|
||||||
p += 3;
|
p += 3;
|
||||||
p_len -= 3;
|
p_len -= 3;
|
||||||
|
Reference in New Issue
Block a user