Update src/graphics/draw/MessageRenderer.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ben Meadors
2026-04-13 09:13:02 -05:00
committed by GitHub
co-authored by Copilot
parent d05232b8b2
commit 6f0e3c5b68
+1 -1
View File
@@ -422,7 +422,7 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
std::vector<bool> isMine; // track alignment
std::vector<bool> isHeader; // track header lines
std::vector<AckStatus> ackForLine;
const size_t estimatedLines = std::max<size_t>(filtered.size(), 1U) * 3U;
const size_t estimatedLines = std::max(filtered.size(), size_t{1}) * size_t{3};
allLines.reserve(estimatedLines);
isMine.reserve(estimatedLines);
isHeader.reserve(estimatedLines);