From 9f6b5f0a178857503a07de8d583096aef08da049 Mon Sep 17 00:00:00 2001 From: Jason P Date: Tue, 4 Nov 2025 08:12:57 -0600 Subject: [PATCH] Improve getSafeNodeName further --- src/graphics/draw/NodeListRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/draw/NodeListRenderer.cpp b/src/graphics/draw/NodeListRenderer.cpp index b0607497f..dae520aba 100644 --- a/src/graphics/draw/NodeListRenderer.cpp +++ b/src/graphics/draw/NodeListRenderer.cpp @@ -72,7 +72,7 @@ const char *getSafeNodeName(OLEDDisplay *display, meshtastic_NodeInfoLite *node) std::string s = (raw && *raw) ? sanitizeString(raw) : std::string{}; // 3) Fallback if sanitize yields empty; otherwise copy safely (truncate if needed) - if (s.empty()) { + if (s.empty() || s == "¿" || s.find_first_not_of("¿") == std::string::npos) { writeFallbackId(); } else { // %.*s ensures null-termination and safe truncation to buffer size - 1