diff --git a/server.c b/server.c index 4d3d86314b2bce72aeaad43a2152915841293aa9..47c0289aafa486f8ac5516029ffa424bccb66bdb 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) {