aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/bzip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/bzip.cpp')
-rw-r--r--doc/examples/bzip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/bzip.cpp b/doc/examples/bzip.cpp
index c3509c4da..6137bb6af 100644
--- a/doc/examples/bzip.cpp
+++ b/doc/examples/bzip.cpp
@@ -84,8 +84,8 @@ int main(int argc, char* argv[])
outfile = outfile.replace(outfile.find(SUFFIX),
SUFFIX.length(), "");
- std::ifstream in(infile.c_str());
- std::ofstream out(outfile.c_str());
+ std::ifstream in(infile.c_str(), std::ios::binary);
+ std::ofstream out(outfile.c_str(), std::ios::binary);
if(!in)
{
std::cout << "ERROR: could not read " << infile << std::endl;