Allow longer program names (VMS allows up to 39 characters).

Submitted by Compaq.
This commit is contained in:
Richard Levitte 2002-04-06 18:59:57 +00:00
parent f60df86c89
commit cc3586028e
3 changed files with 6 additions and 6 deletions

View File

@ -88,8 +88,8 @@ int MAIN(int argc, char **argv)
BIO *bmd=NULL; BIO *bmd=NULL;
BIO *out = NULL; BIO *out = NULL;
const char *name; const char *name;
#define PROG_NAME_SIZE 16 #define PROG_NAME_SIZE 39
char pname[PROG_NAME_SIZE]; char pname[PROG_NAME_SIZE+1];
int separator=0; int separator=0;
int debug=0; int debug=0;
int keyform=FORMAT_PEM; int keyform=FORMAT_PEM;

View File

@ -117,8 +117,8 @@ int MAIN(int argc, char **argv)
const EVP_CIPHER *cipher=NULL,*c; const EVP_CIPHER *cipher=NULL,*c;
char *inf=NULL,*outf=NULL; char *inf=NULL,*outf=NULL;
BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL; BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
#define PROG_NAME_SIZE 16 #define PROG_NAME_SIZE 39
char pname[PROG_NAME_SIZE]; char pname[PROG_NAME_SIZE+1];
char *engine = NULL; char *engine = NULL;
apps_startup(); apps_startup();

View File

@ -215,8 +215,8 @@ static void lock_dbg_cb(int mode, int type, const char *file, int line)
int main(int Argc, char *Argv[]) int main(int Argc, char *Argv[])
{ {
ARGS arg; ARGS arg;
#define PROG_NAME_SIZE 16 #define PROG_NAME_SIZE 39
char pname[PROG_NAME_SIZE]; char pname[PROG_NAME_SIZE+1];
FUNCTION f,*fp; FUNCTION f,*fp;
MS_STATIC char *prompt,buf[1024],config_name[256]; MS_STATIC char *prompt,buf[1024],config_name[256];
int n,i,ret=0; int n,i,ret=0;