From 62651b002aa393a309019a65a94a45f16c4802b3 Mon Sep 17 00:00:00 2001
From: ChouTatsumi <choutatsumi@gmail.com>
Date: Mon, 29 Apr 2019 21:12:58 +1000
Subject: [PATCH] test 21:12

---
 server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.c b/server.c
index 9f1302f..48e618e 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);
+    int added_length = sizeof(added);
 
     // get the size of the file
     struct stat st;
-- 
GitLab