Allow longer program names (VMS allows up to 39 characters).
authorRichard Levitte <levitte@openssl.org>
Sat, 6 Apr 2002 20:22:48 +0000 (20:22 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 6 Apr 2002 20:22:48 +0000 (20:22 +0000)
Submitted by Compaq.

demos/b64.c

index 8e248e7e728547c75e1659e80729fee39f6e6920..113da89baf4876d9ae440b73cec586a2a0c6b454 100644 (file)
@@ -91,8 +91,8 @@ char **argv;
        EVP_CIPHER *cipher=NULL,*c;
        char *inf=NULL,*outf=NULL;
        BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
        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];
 
 
        apps_startup();
 
 
        apps_startup();