diff --git a/test/ref/test_gets.c b/test/ref/test_gets.c index ee5b6fd588..7d7c18e3ae 100644 --- a/test/ref/test_gets.c +++ b/test/ref/test_gets.c @@ -31,7 +31,7 @@ char *argv[]; { /* Fake stdin with the reference file */ fclose(stdin); - stdin = fopen(INFILE, "r"); + stdin = fopen(INFILE, "rb"); if (stdin == NULL) { return EXIT_FAILURE; }