From c74e2c191298544e393823f3db51db70e83b81f7 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 22 May 2016 16:54:02 +0200 Subject: Fix segmentation fault when instantiating `ppm_pixel_stream` in a multithreaded environment --- src/ppm_pixel_stream.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ppm_pixel_stream.cc b/src/ppm_pixel_stream.cc index 465584b..430eb15 100644 --- a/src/ppm_pixel_stream.cc +++ b/src/ppm_pixel_stream.cc @@ -18,7 +18,6 @@ ppm_pixel_stream::ppm_pixel_stream( const std::size_t height ): stream_() { this->stream_.open(path, std::ios::binary | std::ios::out); - this->stream_.sync_with_stdio(false); this->stream_ << "P6\n" << width << " " << height << "\n255\n"; } -- cgit v1.2.3