diff --git a/src/chat/misc.c b/src/chat/misc.c index fe0b599..08477e7 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -146,7 +146,7 @@ char *read_socket_raw(int socket) //READ JSON MESSAGE if (recv(socket, content_buffer, content_size, 0) != content_size - 2) fprintf(stderr, "Socket probably read wrongly!\n"); - content_buffer[content_size - 2] = '\0'; //TODO: Possible problems + content_buffer[content_size - 1] = '\0'; //TODO: Possible problems return content_buffer; }