diff --git a/src/logdata/src/logdata.cpp b/src/logdata/src/logdata.cpp index 624672784..b659b6ee2 100644 --- a/src/logdata/src/logdata.cpp +++ b/src/logdata/src/logdata.cpp @@ -491,7 +491,7 @@ std::vector LogData::getLinesFromFile( LineNumber first_line, LinesCoun const auto length = static_cast( lineEnd - lineStart - lineFeedWidth ); - if ( lineStart + length >= static_cast( buffer.size() ) ) { + if ( lineStart + length > static_cast( buffer.size() ) ) { LOG( logWARNING ) << "LogData::getLines not enough data in buffer"; break; }