please fix
This commit is contained in:
parent
3d4a6f521f
commit
1f110eaa3d
2 changed files with 2 additions and 2 deletions
|
@ -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) );
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue