From b29fe39f596a7c02674ef53bb80f167f23cabd1a Mon Sep 17 00:00:00 2001 From: Jason P Date: Wed, 3 Dec 2025 13:40:30 -0600 Subject: [PATCH] Correct string length calculation for signal bars --- src/graphics/draw/NotificationRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/draw/NotificationRenderer.cpp b/src/graphics/draw/NotificationRenderer.cpp index 30e0bd437..86a5b0703 100644 --- a/src/graphics/draw/NotificationRenderer.cpp +++ b/src/graphics/draw/NotificationRenderer.cpp @@ -492,7 +492,7 @@ void NotificationRenderer::drawNotificationBox(OLEDDisplay *display, OLEDDisplay // Consider extra width for signal bars on lines that contain "Signal:" uint16_t potentialWidth = lineWidths[lineCount]; - if (graphics::bannerSignalBars >= 0 && strstr(lines[lineCount], "Signal:") != nullptr) { + if (graphics::bannerSignalBars >= 0 && strncmp(lines[lineCount], "Signal:", 7) == 0) { const int totalBars = 5; const int barWidth = 3; const int barSpacing = 2;