diff options
Diffstat (limited to 'apps/rand.c')
-rw-r--r-- | apps/rand.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/rand.c b/apps/rand.c index 1ad6894..c78123e 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -88,13 +88,14 @@ int rand_main(int argc, char **argv) break; } } + + /* Optional argument is number of bytes to generate. */ argc = opt_num_rest(); argv = opt_rest(); if (argc == 1) { if (!opt_int(argv[0], &num) || num <= 0) - goto end; - } else if (argc > 0) { - BIO_printf(bio_err, "Extra arguments given.\n"); + goto opthelp; + } else if (argc != 0) { goto opthelp; } |