diff options
author | Vincent Torri <vincent dot torri at gmail dot com> | 2015-12-03 09:32:39 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-12-05 21:04:36 +0100 |
commit | 3b44645363dcdd561edd9610a64f3d2c382753a9 (patch) | |
tree | 64f6c4a580e563e79ca3f1867ae510025052fd64 /src/lib/efreet/efreet_mime.c | |
parent | d2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb (diff) | |
download | efl-3b44645363dcdd561edd9610a64f3d2c382753a9.tar.gz |
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/lib/efreet/efreet_mime.c')
-rw-r--r-- | src/lib/efreet/efreet_mime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_mime.c b/src/lib/efreet/efreet_mime.c index 23d86cfd3f..adfa79053a 100644 --- a/src/lib/efreet/efreet_mime.c +++ b/src/lib/efreet/efreet_mime.c @@ -752,7 +752,7 @@ efreet_mime_fallback_check(const char *file) if (ecore_file_can_exec(file)) return _mime_application_x_executable; - if (!(f = fopen(file, "r"))) return NULL; + if (!(f = fopen(file, "rb"))) return NULL; i = fread(buf, 1, sizeof(buf), f); fclose(f); |