summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_asset.cc')
-rw-r--r--src/subtitle_asset.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc
index d9a87263..92da00bf 100644
--- a/src/subtitle_asset.cc
+++ b/src/subtitle_asset.cc
@@ -312,7 +312,7 @@ void
SubtitleAsset::add_font_data (string id, boost::filesystem::path file)
{
boost::uintmax_t size = boost::filesystem::file_size (file);
- FILE* f = fopen_boost (file, "r");
+ FILE* f = fopen_boost (file, "rb");
if (!f) {
throw FileError ("could not open font file for reading", file, errno);
}