summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_savers
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/modules/evas/image_savers
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 'src/modules/evas/image_savers')
-rw-r--r--src/modules/evas/image_savers/tgv/evas_image_save_tgv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c b/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c
index 44b38e0b39..aa0a82b943 100644
--- a/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c
+++ b/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c
@@ -111,7 +111,7 @@ _save_direct_tgv(RGBA_Image *im, const char *file, int compress)
111 // header[7]: options (unused) 111 // header[7]: options (unused)
112 header[7] = 0; 112 header[7] = 0;
113 113
114 f = fopen(file, "w"); 114 f = fopen(file, "wb");
115 if (!f) return 0; 115 if (!f) return 0;
116 116
117 // Write header 117 // Write header
@@ -300,7 +300,7 @@ evas_image_save_file_tgv(RGBA_Image *im,
300 // Note: consider extending the header instead of filling all the bits here 300 // Note: consider extending the header instead of filling all the bits here
301 header[7] = 0; 301 header[7] = 0;
302 302
303 f = fopen(file, "w"); 303 f = fopen(file, "wb");
304 if (!f) return 0; 304 if (!f) return 0;
305 305
306 // Write header 306 // Write header