Fix srp app missing NULL termination with password callback
[oweals/openssl.git] / apps / pkcs8.c
index 93ffdd55e8586f3bf01b43540757075926059c0d..4b3fa10d23ecc7f700952bf81aac02ef17432062 100644 (file)
@@ -66,7 +66,7 @@ int pkcs8_main(int argc, char **argv)
     char *infile = NULL, *outfile = NULL;
     char *passinarg = NULL, *passoutarg = NULL, *prog;
 #ifndef OPENSSL_NO_UI
-    char pass[50];
+    char pass[APP_PASS_LEN];
 #endif
     char *passin = NULL, *passout = NULL, *p8pass = NULL;
     OPTION_CHOICE o;