mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Fix buffer overrun for groups with long names.
This commit is contained in:
parent
9444d6119b
commit
2fb2f65da6
2 changed files with 1 additions and 1 deletions
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue