From: Vincent Torri Date: Fri, 17 Jun 2011 21:41:17 +0000 (+0000) Subject: Elementary : use binary mode for fopen() X-Git-Tag: v1.0.0~2791 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53b250fe84c7bde06d6e78c4cd58d30e422c8196;p=platform%2Fupstream%2Felementary.git Elementary : use binary mode for fopen() SVN revision: 60462 --- 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