diff options
author | neil.williams%sun.com <devnull@localhost> | 2007-09-21 19:51:05 +0000 |
---|---|---|
committer | neil.williams%sun.com <devnull@localhost> | 2007-09-21 19:51:05 +0000 |
commit | c6367d26b8c6711cdb9db7776dde144cc9205353 (patch) | |
tree | c7508ae51ed0035eb20ea346040019c879e7e369 | |
parent | f8113879aae4b1b3a9e3c47a23e78e5c407da79f (diff) | |
download | nss-hg-c6367d26b8c6711cdb9db7776dde144cc9205353.tar.gz |
Bug 390973, Add long option names to SECU_ParseCommandLine (reopened)
r=Nelson, Bob Relyea
-rw-r--r-- | security/nss/cmd/lib/secutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/cmd/lib/secutil.c b/security/nss/cmd/lib/secutil.c index 17eb9455f..2d2b40561 100644 --- a/security/nss/cmd/lib/secutil.c +++ b/security/nss/cmd/lib/secutil.c @@ -3069,7 +3069,7 @@ SECU_ParseCommandLine(int argc, char **argv, char *progName, j = 0; for (i=0; i<cmd->numCommands; i++) { - if (cmd->options[i].flag) /* single character option ? */ + if (cmd->commands[i].flag) /* single character option ? */ optstring[j++] = cmd->commands[i].flag; if (cmd->commands[i].longform) lcmd++; @@ -3132,7 +3132,7 @@ SECU_ParseCommandLine(int argc, char **argv, char *progName, } else { /* long opt */ if (option == '\0') - option = '\0377'; /* force unequal with all flags */ + option = '\377'; /* force unequal with all flags */ optstatelong = longopts[optstate->longOptIndex].longOptName; } |