fix: varying size between 32bit and 64bit in command receive
This commit is contained in:
parent
0a684f687a
commit
ba70677393
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ handler_command(int fd, controller_t *controller)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t payload_length;
|
uint32_t payload_length;
|
||||||
|
|
||||||
if(recv(client_fd, &payload_length, sizeof(payload_length), 0) <= 0)
|
if(recv(client_fd, &payload_length, sizeof(payload_length), 0) <= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue