sedning one separator more on LIST code

This commit is contained in:
Václav Šmejkal 2024-04-28 12:37:24 +02:00
parent bc14effeee
commit e50184ad66
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -628,7 +628,7 @@ void *why2_communicate_thread(void *arg)
buffer = buffer -> next; //ITER
} while (buffer != NULL);
char *message = why2_calloc(strlen(WHY2_CHAT_CODE_LIST_SERVER) + alloc_size + 1, sizeof(char));
char *message = why2_calloc(strlen(WHY2_CHAT_CODE_LIST_SERVER) + alloc_size + 2, sizeof(char));
buffer = head; //RESET
sprintf(message, WHY2_CHAT_CODE_LIST_SERVER); //SET CODE
@ -647,6 +647,8 @@ void *why2_communicate_thread(void *arg)
buffer = buffer -> next; //ITER
} while (buffer != NULL);
strcat(message, ";");
//SEND
send_socket_deallocate(message, why2_chat_server_config("server_username"), connection);