From eceba7817acdcb149618dd4b25e4b2ba37569056 Mon Sep 17 00:00:00 2001 From: ChouTatsumi <choutatsumi@gmail.com> Date: Mon, 29 Apr 2019 22:01:06 +1000 Subject: [PATCH] test 22:01 --- server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.c b/server.c index 4d3d863..47c0289 100644 --- a/server.c +++ b/server.c @@ -405,6 +405,7 @@ bool show_accepted_page(int sockfd) { char added[2049]; strcat(added, added_prefix); + printf("added is now %s", added); if (sockfd == p1_sockfd) { for (int i = 0; i < p1_guess_len - 1; i++) { @@ -421,11 +422,13 @@ bool show_accepted_page(int sockfd) { strcat(added, p2_guess[p2_guess_len - 1]); } + printf("added is now %s", added); + strcat(added, added_suffix); printf("added is now %s", added); - return show_modified_page(sockfd, ACCEPTED_PAGE, added, 230); + return show_modified_page(sockfd, ACCEPTED_PAGE, added, 264); } void print_buff(char* request) { -- GitLab