From cc3586028e896bfac7513baf19a9fbb8374d1c19 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 6 Apr 2002 18:59:57 +0000 Subject: [PATCH] Allow longer program names (VMS allows up to 39 characters). Submitted by Compaq. --- apps/dgst.c | 4 ++-- apps/enc.c | 4 ++-- apps/openssl.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/dgst.c b/apps/dgst.c index c3e37be41f..0620b32bb4 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -88,8 +88,8 @@ int MAIN(int argc, char **argv) BIO *bmd=NULL; BIO *out = NULL; const char *name; -#define PROG_NAME_SIZE 16 - char pname[PROG_NAME_SIZE]; +#define PROG_NAME_SIZE 39 + char pname[PROG_NAME_SIZE+1]; int separator=0; int debug=0; int keyform=FORMAT_PEM; diff --git a/apps/enc.c b/apps/enc.c index d01060f226..2c3af75170 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -117,8 +117,8 @@ int MAIN(int argc, char **argv) const EVP_CIPHER *cipher=NULL,*c; char *inf=NULL,*outf=NULL; BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL; -#define PROG_NAME_SIZE 16 - char pname[PROG_NAME_SIZE]; +#define PROG_NAME_SIZE 39 + char pname[PROG_NAME_SIZE+1]; char *engine = NULL; apps_startup(); diff --git a/apps/openssl.c b/apps/openssl.c index a344011778..c17458ef7c 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -215,8 +215,8 @@ static void lock_dbg_cb(int mode, int type, const char *file, int line) int main(int Argc, char *Argv[]) { ARGS arg; -#define PROG_NAME_SIZE 16 - char pname[PROG_NAME_SIZE]; +#define PROG_NAME_SIZE 39 + char pname[PROG_NAME_SIZE+1]; FUNCTION f,*fp; MS_STATIC char *prompt,buf[1024],config_name[256]; int n,i,ret=0; -- 2.25.1