Elementary : use binary mode for fopen()
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 17 Jun 2011 21:41:17 +0000 (21:41 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 17 Jun 2011 21:41:17 +0000 (21:41 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60462 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_store.c
src/lib/elm_main.c

index 7bbaa89..456d7cc 100644 (file)
@@ -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
index 5392c8d..a1d2ae5 100644 (file)
@@ -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