Skip to content

Commit

Permalink
use binary mode for writing files
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate authored and jagerman committed Apr 16, 2021
1 parent 9f2f9e0 commit 68826f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/lokinet-bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ main(int argc, char* argv[])
{
try
{
fs::ofstream ofs{outputfile};
fs::ofstream ofs{outputfile, std::ios::binary};
ofs.exceptions(fs::ofstream::failbit);
ofs << data;
return 0;
Expand Down

0 comments on commit 68826f1

Please sign in to comment.