diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-30 16:57:05 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-30 16:57:05 +0100 |
commit | 211a68b41a0dd3fed01ac9c93e495fdc03bd1e92 (patch) | |
tree | 51f4cc401cb750304c2652f1b95ff26632203975 | |
parent | Remove the #ifndef OPENSSL_SYS_VMS around SSL_add_dir_cert_subjects_to_stack (diff) | |
download | openssl-211a68b41a0dd3fed01ac9c93e495fdc03bd1e92.tar.xz openssl-211a68b41a0dd3fed01ac9c93e495fdc03bd1e92.zip |
Fix faulty check in the VMS version of opt_progname
Reviewed-by: Stephen Henson <steve@openssl.org>
-rw-r--r-- | apps/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/opt.c b/apps/opt.c index 90a9d84e47..853c981ce6 100644 --- a/apps/opt.c +++ b/apps/opt.c @@ -127,7 +127,7 @@ char *opt_progname(const char *argv0) q = strrchr(p, '.'); strncpy(prog, p, sizeof prog - 1); prog[sizeof prog - 1] = '\0'; - if (q == NULL || q - p >= sizeof prog) + if (q != NULL && q - p < sizeof prog) prog[q - p] = '\0'; return prog; } |