From: Richard Levitte Date: Sat, 15 Jul 2017 16:20:24 +0000 (+0200) Subject: testutil: stanza files are text files, open them as such X-Git-Tag: OpenSSL_1_1_1-pre1~1034 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=74df8c4ce3c7ccb4e2809a44791756356f704b66;p=oweals%2Fopenssl.git testutil: stanza files are text files, open them as such Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/3939) --- diff --git a/test/testutil/stanza.c b/test/testutil/stanza.c index 46b1e770bf..070ff80611 100644 --- a/test/testutil/stanza.c +++ b/test/testutil/stanza.c @@ -20,7 +20,7 @@ int test_start_file(STANZA *s, const char *testfile) TEST_info("Reading %s", testfile); set_test_title(testfile); memset(s, 0, sizeof(*s)); - if (!TEST_ptr(s->fp = BIO_new_file(testfile, "rb"))) + if (!TEST_ptr(s->fp = BIO_new_file(testfile, "r"))) return 0; s->test_file = testfile; return 1;