From 68fc13b42cd2ce4fdfe5127e6877c47c042c7a4e Mon Sep 17 00:00:00 2001 From: caro Date: Fri, 17 Jun 2011 21:41:17 +0000 Subject: [PATCH] Elementary : use binary mode for fopen() git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60462 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test_store.c | 2 +- src/lib/elm_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/test_store.c b/src/bin/test_store.c index 7bbaa89..456d7cc 100644 --- a/src/bin/test_store.c +++ b/src/bin/test_store.c @@ -130,7 +130,7 @@ _st_store_fetch(void *data __UNUSED__, Elm_Store_Item *sti) // if we already have my item data - skip if (elm_store_item_data_get(sti)) return; // open the mail file and parse it - f = fopen(path, "r"); + f = fopen(path, "rb"); if (!f) return; // alloc my item in memory that holds data to show in the list diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 5392c8d..a1d2ae5 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -3574,7 +3574,7 @@ elm_object_tree_dot_dump(const Evas_Object *top, const char *file) { #ifdef ELM_DEBUG - FILE *f = fopen(file, "w"); + FILE *f = fopen(file, "wb"); elm_widget_tree_dot_dump(top, f); fclose(f); #else -- 2.7.4