Merge pull request #706 from JacobBarthelmeh/Windows

open test file in binary mode
This commit is contained in:
dgarske 2017-01-10 11:54:47 -08:00 committed by GitHub
commit 8954de40ff

View File

@ -361,7 +361,7 @@ static void test_harness(void* vargs)
fname = args->argv[1]; fname = args->argv[1];
} }
file = fopen(fname, "r"); file = fopen(fname, "rb");
if (file == NULL) { if (file == NULL) {
fprintf(stderr, "unable to open %s\n", fname); fprintf(stderr, "unable to open %s\n", fname);
args->return_code = 1; args->return_code = 1;