changed read_socket's read usage to recv

This commit is contained in:
Václav Šmejkal 2023-02-10 10:22:20 +01:00
parent 7a450a19c4
commit 769bed7b18
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -75,7 +75,7 @@ char *read_socket(int socket)
content = why2_calloc(content_size + 1, sizeof(char)); content = why2_calloc(content_size + 1, sizeof(char));
//READ //READ
if (read(socket, content, content_size) != content_size) why2_die("Reading socket failed!"); if (recv(socket, content, content_size, 0) != content_size) why2_die("Reading socket failed!");
return content; return content;
} }