aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/cryptobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/cryptobox.cpp')
-rw-r--r--doc/examples/cryptobox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/cryptobox.cpp b/doc/examples/cryptobox.cpp
index f45f00ca1..38d750d17 100644
--- a/doc/examples/cryptobox.cpp
+++ b/doc/examples/cryptobox.cpp
@@ -27,7 +27,7 @@ int main(int argc, char* argv[])
std::string pass = argv[1];
std::string filename = argv[2];
- std::ifstream input(filename.c_str());
+ std::ifstream input(filename.c_str(), std::ios::binary);
std::vector<byte> file_contents;
while(input.good())