This commit is contained in:
Otto winter 2021-10-21 19:19:22 +02:00
parent 555039a902
commit fe4271a59b
No known key found for this signature in database
GPG Key ID: 48ED2DDB96D7682C
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ APIError APINoiseFrameHelper::state_action_() {
msg.push_back(0x01);
// node name, terminated by null byte
std::string name = App.get_name();
const std::string &name = App.get_name();
const uint8_t *name_ptr = reinterpret_cast<const uint8_t *>(name.c_str());
msg.insert(msg.end(), name_ptr, name_ptr + name.size() + 1);