Elementary : use binary mode for fopen()

SVN revision: 60462
This commit is contained in:
Vincent Torri 2011-06-17 21:41:17 +00:00
parent 4538b5e3ad
commit 41566eda22
2 changed files with 2 additions and 2 deletions

View 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

View 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