From 935b4c378821db51623d3ee344458583785cd645 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 20 Jan 2026 12:51:57 -1000 Subject: [PATCH] fix --- esphome/components/api/api_frame_helper_noise.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/api/api_frame_helper_noise.cpp b/esphome/components/api/api_frame_helper_noise.cpp index 65f16ab3c8..4a9257231d 100644 --- a/esphome/components/api/api_frame_helper_noise.cpp +++ b/esphome/components/api/api_frame_helper_noise.cpp @@ -371,6 +371,7 @@ void APINoiseFrameHelper::send_explicit_handshake_reject_(const LogString *reaso const char *reason_str = LOG_STR_ARG(reason); size_t reason_len = strlen(reason_str); if (reason_len > 0) { + // NOLINTNEXTLINE(bugprone-not-null-terminated-result) - binary protocol, not a C string std::memcpy(data + 1, reason_str, reason_len); } #endif