1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-03 18:42:23 +01:00
This commit is contained in:
J. Nick Koston
2025-10-01 12:59:01 +02:00
parent 3c594a7520
commit 774efad78b

View File

@@ -314,7 +314,8 @@ class Logger : public Component {
static inline void copy_string(char *buffer, uint16_t &pos, const char *str) {
const size_t len = strlen(str);
memcpy(buffer + pos, str, len);
// Intentionally no null terminator, building larger string
memcpy(buffer + pos, str, len); // NOLINT(bugprone-not-null-terminated-result)
pos += len;
}