summaryrefslogtreecommitdiff
path: root/tests/reject.l4
diff options
context:
space:
mode:
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)