please fix

This commit is contained in:
stitchy 2023-12-14 03:17:58 +00:00
parent 3d4a6f521f
commit 1f110eaa3d
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[]) {
// Get Cyphertext from server // Get Cyphertext from server
memset(buffer, '\0', 70001); memset(buffer, '\0', 70001);
charsRead = recv(socketFD, buffer, 70001, 0); charsRead = recv(socketFD, buffer, 70001, MSG_WAITALL);
if (charsRead < 0) error("CLIENT: ERROR reading from socket"); if (charsRead < 0) error("CLIENT: ERROR reading from socket");
//printf("strlen3: %ld\n", strlen(buffer) ); //printf("strlen3: %ld\n", strlen(buffer) );

View file

@ -71,7 +71,7 @@ int main(int argc, char *argv[]) {
// Get Cyphertext from server // Get Cyphertext from server
memset(buffer, '\0', sizeof(buffer)); memset(buffer, '\0', sizeof(buffer));
charsRead = recv(socketFD, buffer, sizeof(buffer) - 1, 0); charsRead = recv(socketFD, buffer, 70001, MSG_WAITALL);
//printf("%d\n", charsRead); //printf("%d\n", charsRead);
if (charsRead < 0) error("CLIENT: ERROR reading from socket"); if (charsRead < 0) error("CLIENT: ERROR reading from socket");