diff options
author | lloyd <[email protected]> | 2010-10-15 16:01:43 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-15 16:01:43 +0000 |
commit | 76de66140226728fd22f1dfda976e7214d79a62c (patch) | |
tree | fa086c236b0a6ffd1c0ea4aa19a7174cd3cf73ea /doc/examples/package.cpp | |
parent | 74fe6649c298e34beeacc190f0d557e5421fe79e (diff) |
Use binary I/O where needed
Diffstat (limited to 'doc/examples/package.cpp')
-rw-r--r-- | doc/examples/package.cpp | 2 |
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 }; |