[Ecm-commits] r2615 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Sat Feb 14 17:18:25 CET 2015


Author: dcleaver
Date: 2015-02-14 17:18:25 +0100 (Sat, 14 Feb 2015)
New Revision: 2615

Modified:
   trunk/resume.c
Log:
read/write s in binary mode for best compatibility

Modified: trunk/resume.c
===================================================================
--- trunk/resume.c	2015-02-14 12:03:40 UTC (rev 2614)
+++ trunk/resume.c	2015-02-14 16:18:25 UTC (rev 2615)
@@ -674,7 +674,7 @@
     }
 #endif
   
-  file = fopen (fn, "w");
+  file = fopen (fn, "wb");
   if (file == NULL)
     {
       fprintf (stderr, "Could not open file %s for writing\n", fn);
@@ -705,7 +705,7 @@
     }
 #endif
   
-  file = fopen (fn, "r");
+  file = fopen (fn, "rb");
   if (file == NULL)
     {
       fprintf (stderr, "Could not open file %s for reading\n", fn);



More information about the Ecm-commits mailing list