Fix Win32 native convttf creating invalid output files.

When operating with binary files on Windows it is necessary to explicitly open
them in binary mode to prevent unwanted effects.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29699 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-04-10 11:25:59 +00:00
parent 7adc200564
commit b66239b436

View file

@ -921,7 +921,7 @@ void convttf(char* path, char* destfile, FT_Long face_index)
char_name,converted_char_count,done); fflush(stdout); char_name,converted_char_count,done); fflush(stdout);
} }
file = fopen(destfile, "w"); file = fopen(destfile, "wb");
printf("Writing %s\n", destfile); printf("Writing %s\n", destfile);
/* font info */ /* font info */