blah.blah3 = evas_list_append(blah.blah3, &blah3);
data = eet_data_descriptor_encode(edd, &blah, &size);
- f = fopen("out", "w");
+ f = fopen("out", "wb");
if (f)
{
fwrite(data, size, 1, f);
eet_mkdirs(buf);
}
- f = fopen(file, "w");
+ f = fopen(file, "wb");
if (f)
{
fwrite(data, 1, size, f);
{
FILE *f;
- f = fopen(file, "r");
+ f = fopen(file, "rb");
if (f)
{
int compress = 1;
/* try open the file based on mode */
if ((ef->mode == EET_FILE_MODE_READ) || (ef->mode == EET_FILE_MODE_RW))
- ef->fp = fopen(ef->path, "r");
+ ef->fp = fopen(ef->path, "rb");
else if (ef->mode == EET_FILE_MODE_WRITE)
{
/* opening for write - delete old copy of file right away */
unlink(ef->real_path);
- ef->fp = fopen(ef->path, "w");
+ ef->fp = fopen(ef->path, "wb");
}
else
{
{
fclose(ef->fp);
unlink(ef->real_path);
- ef->fp = fopen(ef->path, "w");
+ ef->fp = fopen(ef->path, "wb");
}
/* add to cache */