aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/package.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/package.cpp')
-rw-r--r--doc/examples/package.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/package.cpp b/doc/examples/package.cpp
index 38a2e1666..02cf52816 100644
--- a/doc/examples/package.cpp
+++ b/doc/examples/package.cpp
@@ -18,7 +18,7 @@ namespace {
std::vector<byte> slurp_file(const std::string& filename)
{
- std::ifstream in(filename.c_str());
+ std::ifstream in(filename.c_str(), std::ios::binary);
std::vector<byte> out;
byte buf[4096] = { 0 };