aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/hasher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/hasher.cpp')
-rw-r--r--doc/examples/hasher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/hasher.cpp b/doc/examples/hasher.cpp
index f3f2ab874..e5c52ba55 100644
--- a/doc/examples/hasher.cpp
+++ b/doc/examples/hasher.cpp
@@ -35,7 +35,7 @@ int main(int argc, char* argv[])
Botan::Pipe pipe(new Botan::Fork(hash, COUNT));
- std::ifstream file(argv[j]);
+ std::ifstream file(argv[j], std::ios::binary);
if(!file)
{
std::cout << "ERROR: could not open " << argv[j] << std::endl;