Sorting output

This commit is contained in:
Ano-sys
2025-01-29 21:07:58 +01:00
parent c0d2ffffd3
commit bc1fde1b9f
80 changed files with 2171 additions and 36362 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ void* workerFunc(void *args){
key_value_pair *head = NULL;
key_value_pair *tail = NULL;
char request[MESSAGE_LENGTH + 1]; // CHECK: off by one error
int bytes_recv = zmq_recv(responder, request, MESSAGE_LENGTH, 0);
char request[MESSAGE_LENGTH]; // CHECK: off by one error
int bytes_recv = zmq_recv(responder, request, MESSAGE_LENGTH - 1, 0);
if(bytes_recv <= 0){
perror("Failed to receive request");
continue;