fix sonar compile

This commit is contained in:
proddy
2024-08-16 16:14:07 +02:00
parent 1d287b6e20
commit bc8a840695
4 changed files with 8 additions and 2 deletions

View File

@@ -379,7 +379,9 @@ std::string Helpers::data_to_hex(const uint8_t * data, const uint8_t length) {
return "<empty>";
}
char str[length * 3] = {0};
char str[length * 3];
memset(str, 0, length * sizeof(char));
char buffer[4];
char * p = &str[0];
for (uint8_t i = 0; i < length; i++) {