mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-19 03:56:26 -04:00
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:
committed by
Adam Honse
parent
27a37f65ea
commit
7d37ec60b9
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user