diff --git a/RSA-Chat b/RSA-Chat index 7b674ba..c78d2f7 100755 Binary files a/RSA-Chat and b/RSA-Chat differ diff --git a/src/c/RSA-Chat.c b/src/c/RSA-Chat.c index 1b1602f..e7df19c 100644 --- a/src/c/RSA-Chat.c +++ b/src/c/RSA-Chat.c @@ -22,6 +22,7 @@ void* receive_f(void* _i){ char* filename = malloc(BUFFER); long file_size=0; while(1){ + memset(buffer,0,BUFFER); ssize_t received = recvfrom(input->sockfd, buffer, BUFFER, 0,NULL, NULL); if(received<=0){ perror("receive_f(): recvfrom failed.");