mirror of
https://github.com/esphome/esphome.git
synced 2025-10-03 18:42:23 +01:00
preen
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user