apps: remove initial newline from mac output

Fixes #13247

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15189)
This commit is contained in:
Pauli 2021-05-07 14:12:38 +10:00
parent a1230dea4d
commit 68f3fb0514
2 changed files with 2 additions and 4 deletions

View File

@ -181,8 +181,6 @@ opthelp:
if (out_bin) {
BIO_write(out, buf, len);
} else {
if (outfile == NULL)
BIO_printf(out,"\n");
for (i = 0; i < (int)len; ++i)
BIO_printf(out, "%02X", buf[i]);
if (outfile == NULL)

View File

@ -137,10 +137,10 @@ sub compareline {
# Not unlinking $tmpfile
if (defined($expect)) {
if ($lines[1] =~ m|^\Q${expect}\E\R$|) {
if ($lines[0] =~ m|^\Q${expect}\E\R$|) {
return 1;
} else {
print "Got: $lines[1]";
print "Got: $lines[0]";
print "Exp: $expect\n";
return 0;
}