aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/package.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-28 20:05:21 +0000
committerlloyd <[email protected]>2010-10-28 20:05:21 +0000
commit7c2ac02f29fd4b5d629e187381baa783b53bd2e4 (patch)
tree9d07a452f0a7bd44a2b9d3aaac16f9d9e692fde5 /doc/examples/package.cpp
parentb502cefaf0f9396354d58c4c18a78ac7870f6168 (diff)
parent7e4c62045c8216138dbed1c586139a1de7cd7f27 (diff)
propagate from branch 'net.randombit.botan' (head 2841fb518e20d2fe0a374e4f6b08bdbb14d5d158)
to branch 'net.randombit.botan.c++0x' (head 0b9275139d6346bd3aa28d63bf8b8a03851d853d)
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 };