summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-18 19:50:19 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-18 19:50:19 +0100
commit13db82c73af330ffbc7a813cd38c5bef36d5b54c (patch)
tree0dcd6aac7e706d4fba79835d36b55412066e1f2e /src/subtitle_asset.cc
parent08f1afc562c2f5efeca88371cc4e7ced3b2f36a2 (diff)
Fix several missing binary specifiers to fopen.
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);
}