From b66239b4363863d3db22fe89ca9909eea11f5097 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 10 Apr 2011 11:25:59 +0000 Subject: [PATCH] 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 --- tools/convttf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/convttf.c b/tools/convttf.c index b0284ec85f..66f0ad2176 100644 --- a/tools/convttf.c +++ b/tools/convttf.c @@ -921,7 +921,7 @@ void convttf(char* path, char* destfile, FT_Long face_index) char_name,converted_char_count,done); fflush(stdout); } - file = fopen(destfile, "w"); + file = fopen(destfile, "wb"); printf("Writing %s\n", destfile); /* font info */