summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-09-27 10:54:22 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-09-27 10:54:24 +0200
commitfcd1ba098091fac79cae9e22b3465354e4790746 (patch)
tree5d3aa42c4b784d7e835d410a5c7a5b19efcf89bd
parentf4fb1559c454282efb6df5313af7bc56afbe5bd0 (diff)
downloadlibtasn1-fcd1ba098091fac79cae9e22b3465354e4790746.tar.gz
tests: use the 'rb' modifier in fopen
This allows the tests to be run under wine.
-rw-r--r--tests/Test_choice_ocsp.c2
-rw-r--r--tests/ocsp-basic-response.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Test_choice_ocsp.c b/tests/Test_choice_ocsp.c
index d4183b6..33c17fc 100644
--- a/tests/Test_choice_ocsp.c
+++ b/tests/Test_choice_ocsp.c
@@ -37,7 +37,7 @@ main (int argc, char** argv)
exit (1);
}
- fp = fopen(datafile, "r");
+ fp = fopen(datafile, "rb");
if (fp == NULL)
{
printf ("error in %d\n", __LINE__);
diff --git a/tests/ocsp-basic-response.c b/tests/ocsp-basic-response.c
index 701ed53..54b50ae 100644
--- a/tests/ocsp-basic-response.c
+++ b/tests/ocsp-basic-response.c
@@ -36,7 +36,7 @@ main (int argc, char** argv)
exit (1);
}
- fp = fopen(datafile, "r");
+ fp = fopen(datafile, "rb");
if (fp == NULL)
{
fprintf (stderr, "error in %d\n", __LINE__);