Add space for '\0'
ReceiveThreadFunction receives max 1024 bytes and then adds '\0' to it, so the buffer needs to be 1025 chars.
This commit is contained in:
parent
27a37f65ea
commit
7d37ec60b9
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ void PhilipsWizController::SetScene(int scene, unsigned char brightness)
|
|||
|
||||
void PhilipsWizController::ReceiveThreadFunction()
|
||||
{
|
||||
char recv_buf[1024];
|
||||
char recv_buf[1025];
|
||||
|
||||
while(ReceiveThreadRun.load())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue