aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/rsa_dec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/rsa_dec.cpp')
-rw-r--r--doc/examples/rsa_dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/rsa_dec.cpp b/doc/examples/rsa_dec.cpp
index 8353b0449..81592328c 100644
--- a/doc/examples/rsa_dec.cpp
+++ b/doc/examples/rsa_dec.cpp
@@ -60,7 +60,7 @@ int main(int argc, char* argv[])
std::string outfile(argv[2]);
outfile = outfile.replace(outfile.find(SUFFIX), SUFFIX.length(), "");
- std::ofstream plaintext(outfile.c_str());
+ std::ofstream plaintext(outfile.c_str(), std::ios::binary);
if(!plaintext)
{
std::cout << "Couldn't write the plaintext to "