added why2_read_socket invalid size TODO

This commit is contained in:
Václav Šmejkal 2023-02-21 19:53:00 +01:00
parent ab46803a91
commit cbcfaaae92
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -182,6 +182,8 @@ char *why2_read_socket(int socket)
//READ FINAL MESSAGE
if (recv(socket, content_buffer, content_size, 0) != content_size) fprintf(stderr, "Socket probably read wrongly!\n");
//TODO: Fix size [first two indexes]
return content_buffer;
}