Skip to content
Snippets Groups Projects
Commit eceba781 authored by ChouTatsumi's avatar ChouTatsumi
Browse files

test 22:01

parent a10c6234
No related branches found
No related tags found
No related merge requests found
...@@ -405,6 +405,7 @@ bool show_accepted_page(int sockfd) { ...@@ -405,6 +405,7 @@ bool show_accepted_page(int sockfd) {
char added[2049]; char added[2049];
strcat(added, added_prefix); strcat(added, added_prefix);
printf("added is now %s", added);
if (sockfd == p1_sockfd) { if (sockfd == p1_sockfd) {
for (int i = 0; i < p1_guess_len - 1; i++) { for (int i = 0; i < p1_guess_len - 1; i++) {
...@@ -421,11 +422,13 @@ bool show_accepted_page(int sockfd) { ...@@ -421,11 +422,13 @@ bool show_accepted_page(int sockfd) {
strcat(added, p2_guess[p2_guess_len - 1]); strcat(added, p2_guess[p2_guess_len - 1]);
} }
printf("added is now %s", added);
strcat(added, added_suffix); strcat(added, added_suffix);
printf("added is now %s", added); 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) { void print_buff(char* request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment