summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_menu.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/efreet/efreet_menu.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 'src/lib/efreet/efreet_menu.c')
-rw-r--r--src/lib/efreet/efreet_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index ada789b7e0..b774460c98 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -687,7 +687,7 @@ efreet_menu_save(Efreet_Menu *menu, const char *path)
687 EINA_SAFETY_ON_NULL_RETURN_VAL(menu, 0); 687 EINA_SAFETY_ON_NULL_RETURN_VAL(menu, 0);
688 EINA_SAFETY_ON_NULL_RETURN_VAL(path, 0); 688 EINA_SAFETY_ON_NULL_RETURN_VAL(path, 0);
689 689
690 f = fopen(path, "w"); 690 f = fopen(path, "wb");
691 if (!f) return 0; 691 if (!f) return 0;
692 fprintf(f, "<?xml version=\"1.0\"?>\n"); 692 fprintf(f, "<?xml version=\"1.0\"?>\n");
693 fprintf(f, "<!DOCTYPE Menu PUBLIC \"-//freedesktop//DTD Menu 1.0//EN\" " 693 fprintf(f, "<!DOCTYPE Menu PUBLIC \"-//freedesktop//DTD Menu 1.0//EN\" "