mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-15 15:52:13 +11:00
start is 0-indexed so == to data.size() is out of bounds
This commit is contained in:
parent
c970b6a42f
commit
a98b84955c
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ std::string Log::GetLogsV2() noexcept
|
||||||
|
|
||||||
std::string Log::GetLogsRange(size_t start, size_t length) noexcept
|
std::string Log::GetLogsRange(size_t start, size_t length) noexcept
|
||||||
{
|
{
|
||||||
if (start > data.size()) { return "[]"; }
|
if (start >= data.size()) { return "[]"; }
|
||||||
if (start == 0 && length == MAX_LOG_SIZE) { return log_snapshot_v2; }
|
if (start == 0 && length == MAX_LOG_SIZE) { return log_snapshot_v2; }
|
||||||
if (log_flag_v2.GetChangeState() && data.size()) { GetLogsV2(); }
|
if (log_flag_v2.GetChangeState() && data.size()) { GetLogsV2(); }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue