mirror of
https://github.com/esphome/esphome.git
synced 2025-10-04 11:02:19 +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) {
|
static inline void copy_string(char *buffer, uint16_t &pos, const char *str) {
|
||||||
const size_t len = strlen(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;
|
pos += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user