Fix buffer overrun for groups with long names.

This commit is contained in:
Robert Strouse 2023-10-29 15:12:08 -07:00
parent 9444d6119b
commit 2fb2f65da6
2 changed files with 1 additions and 1 deletions

View file

@ -1714,7 +1714,7 @@ void SomfyShade::emitCommand(uint8_t num, somfy_commands cmd, const char *source
void SomfyGroup::emitState(const char *evt) { this->emitState(255, evt); }
void SomfyGroup::emitState(uint8_t num, const char *evt) {
ClientSocketEvent e(evt);
char buf[30];
char buf[55];
uint8_t flags = 0;
snprintf(buf, sizeof(buf), "{\"groupId\":%d,", this->groupId);
e.appendMessage(buf);

Binary file not shown.