From 539b977eff7c71f628cb2a407543a51070b14763 Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 13 Nov 2000 01:03:58 +0000 Subject: Initial import of OpenSSL 0.9.6 --- crypto/openssl/apps/rand.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'crypto/openssl/apps/rand.c') diff --git a/crypto/openssl/apps/rand.c b/crypto/openssl/apps/rand.c index cfbba30..04764d7 100644 --- a/crypto/openssl/apps/rand.c +++ b/crypto/openssl/apps/rand.c @@ -62,7 +62,7 @@ int MAIN(int argc, char **argv) else badopt = 1; } - else if (isdigit(argv[i][0])) + else if (isdigit((unsigned char)argv[i][0])) { if (num < 0) { @@ -101,7 +101,15 @@ int MAIN(int argc, char **argv) if (outfile != NULL) r = BIO_write_filename(out, outfile); else + { r = BIO_set_fp(out, stdout, BIO_NOCLOSE | BIO_FP_TEXT); +#ifdef VMS + { + BIO *tmpbio = BIO_new(BIO_f_linebuffer()); + out = BIO_push(tmpbio, out); + } +#endif + } if (r <= 0) goto err; -- cgit v1.1