diff options
Diffstat (limited to 'apps/ciphers.c')
-rw-r--r-- | apps/ciphers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/ciphers.c b/apps/ciphers.c index 500b416046..3afbbe5002 100644 --- a/apps/ciphers.c +++ b/apps/ciphers.c @@ -176,11 +176,12 @@ int ciphers_main(int argc, char **argv) break; } } + + /* Optional arg is cipher name. */ argv = opt_rest(); argc = opt_num_rest(); - if (argc == 1) - ciphers = *argv; + ciphers = argv[0]; else if (argc != 0) goto opthelp; |