]> granicus.if.org Git - flex/commitdiff
Opened files in binary mode explicitly
authorEgor Pugin <egor.pugin@gmail.com>
Sun, 10 Jan 2016 20:43:47 +0000 (15:43 -0500)
committerWill Estes <westes575@gmail.com>
Sun, 10 Jan 2016 20:43:47 +0000 (15:43 -0500)
tests/reject.l4
tests/tableopts.l4

index 27982b194d2f5e0463e8afda410048cb6834350c..7eda4a59850ba3bc4580522770f9d62ed4ebbb28 100644 (file)
@@ -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)
index bb79407d90c57898b706b32afbbdf3c3204f0a1f..ac85c29638d0993625af56cb01df399d06feefcf 100644 (file)
@@ -55,7 +55,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)