diff --git a/server.c b/server.c index a3f3fe12d23649a9f4a868cff6809e5bad29ddcc..9f1302f564c7e9b9129ba63936afd3d69b3e93a2 100644 --- a/server.c +++ b/server.c @@ -367,6 +367,8 @@ bool show_modified_page(int sockfd, const char* htmldir, char* added, // copy the username strncpy(buff + p2, added, added_length); + print_buff(buff); + if (write(sockfd, buff, size) < 0) { perror("write"); return false; @@ -400,7 +402,7 @@ bool show_accepted_page(int sockfd) { char* added_prefix = "<p>"; char* added_suffix = "</p>\n\n"; - + for (int i = 0; i < list_len; i++) { }