summaryrefslogtreecommitdiff
path: root/tests/reject.l4
diff options
context:
space:
mode:
authorEgor Pugin <egor.pugin@gmail.com>2016-01-10 15:43:47 -0500
committerWill Estes <westes575@gmail.com>2016-01-10 15:43:47 -0500
commit3d1175b232dfa924b1faa22ec7f0c6f0dd673ea6 (patch)
treebe763e931841a9bc5e6633f2b67b94743db4d6bc /tests/reject.l4
parent11ea8d73fc92669cbbced0f8a84f4e05f2bd6a3d (diff)
Opened files in binary mode explicitly
Diffstat (limited to 'tests/reject.l4')
-rw-r--r--tests/reject.l42
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/reject.l4 b/tests/reject.l4
index 27982b1..7eda4a5 100644
--- a/tests/reject.l4
+++ b/tests/reject.l4
@@ -53,7 +53,7 @@ int main ( int argc, char** argv )
#endif
#ifdef TEST_HAS_TABLES_EXTERNAL
- if((fp = fopen(argv[1],"r"))== NULL)
+ if((fp = fopen(argv[1],"rb"))== NULL)
YY_FATAL_ERROR("could not open tables file for reading");
if(yytables_fload(fp M4_YY_CALL_LAST_ARG) < 0)