From c1a84ca71a80d44af34e1a7e47f6f5f4f96fdf4d Mon Sep 17 00:00:00 2001
From: ChouTatsumi <choutatsumi@gmail.com>
Date: Mon, 29 Apr 2019 20:41:45 +1000
Subject: [PATCH] bug 20:41

---
 server.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server.c b/server.c
index 576a6b3..7711f97 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
-    long added_length = strlen(added);
+    int added_length = strlen(added);
 
     // get the size of the file
     struct stat st;
@@ -386,7 +386,7 @@ bool show_start_page(int sockfd, char* username) {
     char* added_suffix = "</p>\n\n";
     int added_suffix_length = strlen(added_suffix);
     // the length needs to include the html tags for the username
-    long added_length = username_length + 9;
+    int added_length = username_length + 9;
 
     char added[added_length + 1];
 
-- 
GitLab