diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-18 19:50:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-18 19:50:19 +0100 |
| commit | 13db82c73af330ffbc7a813cd38c5bef36d5b54c (patch) | |
| tree | 0dcd6aac7e706d4fba79835d36b55412066e1f2e /src/file.cc | |
| parent | 08f1afc562c2f5efeca88371cc4e7ced3b2f36a2 (diff) | |
Fix several missing binary specifiers to fopen.
Diffstat (limited to 'src/file.cc')
| -rw-r--r-- | src/file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cc b/src/file.cc index f2915947..2009a036 100644 --- a/src/file.cc +++ b/src/file.cc @@ -35,7 +35,7 @@ File::File (boost::filesystem::path file) { _size = boost::filesystem::file_size (file); _data = new uint8_t[_size]; - FILE* f = dcp::fopen_boost (file, "r"); + FILE* f = dcp::fopen_boost (file, "rb"); DCP_ASSERT (f); fread (_data, 1, _size, f); fclose (f); |
