From: Bodo Möller Date: Mon, 2 Feb 2009 00:40:29 +0000 (+0000) Subject: For -hex, print just one \n X-Git-Tag: OpenSSL_0_9_8k^2~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d615bceb2d56a88da6fbee418f1650ac3fe3435c;p=oweals%2Fopenssl.git For -hex, print just one \n --- diff --git a/apps/rand.c b/apps/rand.c index 7214a9d2a8..44a1d46a03 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -229,10 +229,11 @@ int MAIN(int argc, char **argv) { for (i = 0; i < chunk; i++) BIO_printf(out, "%02x", buf[i]); - BIO_puts(out, "\n"); } num -= chunk; } + if (hex) + BIO_puts(out, "\n"); (void)BIO_flush(out); app_RAND_write_file(NULL, bio_err);