diff --git a/server.c b/server.c
index 2a7dd185cbaacfeb35aa58b803ad7839be4cfb48..dfe370317896db225a2b3a37bddc0ded8089aa05 100644
--- a/server.c
+++ b/server.c
@@ -335,7 +335,7 @@ bool show_modified_page(int sockfd, const char* htmldir, char* added,
     int n;
 
     // the length needs to include the html tags for the username
-    int added_length = strlen(added) + 1;
+    int added_length = strlen(added);
 
     // get the size of the file
     struct stat st;
@@ -368,8 +368,6 @@ 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;