summaryrefslogtreecommitdiffstats
path: root/apps/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/rand.c')
-rw-r--r--apps/rand.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/rand.c b/apps/rand.c
index fa9bc023f4..04764d7ffb 100644
--- a/apps/rand.c
+++ b/apps/rand.c
@@ -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;