Browse Source

Merge pull request #1390 from Genoil/develop

Win32/MSVC requires ios::binary flag on ofstream to correctly write dag file
cl-refactor
Gav Wood 10 years ago
parent
commit
c8f2e34d18
  1. 2
      libdevcore/CommonIO.cpp

2
libdevcore/CommonIO.cpp

@ -112,6 +112,6 @@ string dev::contentsString(std::string const& _file)
void dev::writeFile(std::string const& _file, bytesConstRef _data) void dev::writeFile(std::string const& _file, bytesConstRef _data)
{ {
ofstream(_file, ios::trunc).write((char const*)_data.data(), _data.size()); ofstream(_file, ios::trunc|ios::binary).write((char const*)_data.data(), _data.size());
} }

Loading…
Cancel
Save