add missing null to client_message

a regression in 4b147066 meant that attempting to read a pixel value
whilst there were more lines queued up would instead overwrite it
This commit is contained in:
vulpine 2023-11-01 19:51:38 +00:00
parent ddba6ff1cd
commit c6ed6a3b25
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ void *handle_connection(void *socket_desc) {
}
read_to = read_to - (uintptr_t)client_message;
read_size = recv(sock, client_message, read_to + 1, 0);
client_message[read_size] = '\0';
command = safestrtok(client_message, " \n", &strtokptr);