aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-05-22 16:54:02 +0200
committerAdrian Kummerlaender2016-05-22 16:54:02 +0200
commitc74e2c191298544e393823f3db51db70e83b81f7 (patch)
tree8954ee3957d163388c8dfc7de1c2fd628b190788
parente02d92e7bcd57b627146a89b694f3767a594c716 (diff)
downloadvoronoi-c74e2c191298544e393823f3db51db70e83b81f7.tar
voronoi-c74e2c191298544e393823f3db51db70e83b81f7.tar.gz
voronoi-c74e2c191298544e393823f3db51db70e83b81f7.tar.bz2
voronoi-c74e2c191298544e393823f3db51db70e83b81f7.tar.lz
voronoi-c74e2c191298544e393823f3db51db70e83b81f7.tar.xz
voronoi-c74e2c191298544e393823f3db51db70e83b81f7.tar.zst
voronoi-c74e2c191298544e393823f3db51db70e83b81f7.zip
Fix segmentation fault when instantiating `ppm_pixel_stream` in a multithreaded environment
-rw-r--r--src/ppm_pixel_stream.cc1
1 files changed, 0 insertions, 1 deletions
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";
}