aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_x/xlib/ecore_x_vsync.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/lib/ecore_x/xlib/ecore_x_vsync.c
parentecore-wl2: fix use after free and leak when deleting display object (diff)
downloadefl-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/ecore_x/xlib/ecore_x_vsync.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_vsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c
index ea35b5a4ff..bdf832c97b 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -443,7 +443,7 @@ _drm_init(int *flags)
if (stat("/sys/module/vboxvideo", &st) == 0)
{
/*
- FILE *fp = fopen("/sys/module/vboxvideo/version", "r");
+ FILE *fp = fopen("/sys/module/vboxvideo/version", "rb");
if (fp)
{
if (fgets(buf, sizeof(buf), fp))
@@ -462,7 +462,7 @@ _drm_init(int *flags)
// only do this on new kernels = let's say 3.14 and up. 3.16 definitely
// works
{
- FILE *fp = fopen("/proc/sys/kernel/osrelease", "r");
+ FILE *fp = fopen("/proc/sys/kernel/osrelease", "rb");
if (fp)
{
if (fgets(buf, sizeof(buf), fp))