From 14cc1bf0d3487ffbd391f28cf808f4fca9683c78 Mon Sep 17 00:00:00 2001 From: Abhisha Nirmalathas <a.nirmalathas1@student.unimelb.edu.au> Date: Mon, 13 May 2019 21:12:11 +1000 Subject: [PATCH] debug server rrsponse --- DiffieHellman.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DiffieHellman.c b/DiffieHellman.c index 4d25098..548ab18 100644 --- a/DiffieHellman.c +++ b/DiffieHellman.c @@ -122,7 +122,8 @@ int main(int argc, char *argv[]){ while(1){ n = read(sockfd, buffer, 255); printf("read n is %d\n", n); - if(!strcmp(buffer,"\n")){ + printf("bufferrr %s\n\n",buffer); + if(!strncmp(buffer,"\n",1)){ buffer[n] = 0; break; } -- GitLab