We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a21a13 commit c7e7387Copy full SHA for c7e7387
libraries/Zigbee/src/ZigbeeEP.cpp
@@ -44,7 +44,7 @@ bool ZigbeeEP::setManufacturerAndModel(const char *name, const char *model) {
44
return false;
45
}
46
// Allocate a new array of size length + 2 (1 for the length, 1 for null terminator)
47
- std::vector<char> zb_name(name_length + 2); // +2 for length byte and null terminator
+ std::vector<char> zb_name(name_length + 2);
48
std::vector<char> zb_model(model_length + 2);
49
// Store the length as the first element
50
zb_name[0] = static_cast<char>(name_length); // Cast size_t to char
0 commit comments