1
0
Fork 0

index off-by-one error

This commit is contained in:
Kevin Matz 2021-09-01 12:29:11 -04:00
parent 6822fe2d52
commit 1ec57961f7
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void Source::discoveryAnnounce()
auto data = std::make_shared<EXTENDED::DISCOVERY::discovery_list_data>();
for (size_t n = i * 512; n < (i * 512) + 512; n++)
{
if (n > list.size())
if (n >= list.size())
break;
data->found.push_back(list.at(n));
}