From 6d3518ac9eea73b5021ab8a4f8bc23eeae600080 Mon Sep 17 00:00:00 2001 From: Philipp Geier Date: Wed, 6 Dec 2023 12:38:25 +0100 Subject: [PATCH] Update ChannelBuffer.cc --- src/eckit/log/ChannelBuffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eckit/log/ChannelBuffer.cc b/src/eckit/log/ChannelBuffer.cc index 852ca31d5..d5b20cef4 100644 --- a/src/eckit/log/ChannelBuffer.cc +++ b/src/eckit/log/ChannelBuffer.cc @@ -67,7 +67,7 @@ void ChannelBuffer::reset() { bool ChannelBuffer::dumpBuffer() { // When setting and using pointers we should have boundary checks. In a multi threaded environment we already have experienced weird behaviour. - // With thiese checks the race conditions are not gone but they won't cause any segfaults. See https://github.com/ecmwf/eckit/issues/89 + // With these checks the race conditions are not gone but they won't cause any segfaults. See https://github.com/ecmwf/eckit/issues/89 if (target_) { // Explicitly check that `pptr()` is not larger than end of buffer. Racecondition can end up adding larger values. target_->write(buffer_.data(), std::min(pptr(), buffer_.data() + buffer_.size()));