summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_file.c
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 09:32:39 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:04:36 +0100
commit3b44645363dcdd561edd9610a64f3d2c382753a9 (patch)
tree64f6c4a580e563e79ca3f1867ae510025052fd64 /src/tests/ecore/ecore_test_ecore_file.c
parentd2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb (diff)
efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index 93689ac4ec..1e2d801039 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -20,9 +20,9 @@
20void 20void
21_writeToFile(const char *filePath, char *text) 21_writeToFile(const char *filePath, char *text)
22{ 22{
23 FILE *f = fopen(filePath, "r+"); 23 FILE *f = fopen(filePath, "rb+");
24 if (f == NULL) 24 if (f == NULL)
25 f = fopen(filePath, "w"); 25 f = fopen(filePath, "wb");
26 fail_if(f == NULL); 26 fail_if(f == NULL);
27 fprintf(f, "%s\n", text); 27 fprintf(f, "%s\n", text);
28 fclose(f); 28 fclose(f);