diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-18 13:32:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-18 13:32:03 +0100 |
| commit | 6a90fdef69f0f83a98f591a44af3d9a81e111da4 (patch) | |
| tree | 3356e835b1c602507a27253e07f95dc365e8ff6d | |
| parent | 6600d2bb68b49e70b71c89c9ae51cf1713fd0e08 (diff) | |
Fix corruption of font files on Windows.
| -rw-r--r-- | src/interop_subtitle_asset.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 620fed73..fbdd839b 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -159,7 +159,7 @@ InteropSubtitleAsset::write (boost::filesystem::path p) const BOOST_FOREACH (shared_ptr<InteropLoadFontNode> i, _load_font_nodes) { boost::filesystem::path file = p.parent_path() / i->uri; - FILE* f = fopen_boost (file, "w"); + FILE* f = fopen_boost (file, "wb"); if (!f) { throw FileError ("could not open font file for writing", file, errno); } |
