diff --git a/DiffieHellman.c b/DiffieHellman.c index 548ab18dfffd001ccee07db23c8e0e9282f3c971..7326c1b9989c85767e5aee291231266d220a3a45 100644 --- a/DiffieHellman.c +++ b/DiffieHellman.c @@ -122,12 +122,13 @@ int main(int argc, char *argv[]){ while(1){ n = read(sockfd, buffer, 255); printf("read n is %d\n", n); - printf("bufferrr %s\n\n",buffer); + printf("bufferrr %s and size if %d\n\n",buffer, strlen(buffer)); if(!strncmp(buffer,"\n",1)){ + printf("is newline"); buffer[n] = 0; break; } - buffer[n] = 0; + // buffer[n] = 0; } buffer[n] = 0; int responseDiffie = atoi(buffer);