From ba7067739388984d56a07d0c63569fe8dd768519 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 14 Apr 2020 02:46:27 +0200 Subject: [PATCH] fix: varying size between 32bit and 64bit in command receive --- handlers/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/command.c b/handlers/command.c index b674817..be5e23b 100644 --- a/handlers/command.c +++ b/handlers/command.c @@ -67,7 +67,7 @@ handler_command(int fd, controller_t *controller) return; } - size_t payload_length; + uint32_t payload_length; if(recv(client_fd, &payload_length, sizeof(payload_length), 0) <= 0) {