From 1a12b8104f9adc529e46b75642d2a1bc4bd671a4 Mon Sep 17 00:00:00 2001 From: ChouTatsumi <choutatsumi@gmail.com> Date: Mon, 29 Apr 2019 20:44:07 +1000 Subject: [PATCH] bug 20:44 --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 95f03d7..7c2ef35 100644 --- a/server.c +++ b/server.c @@ -388,7 +388,7 @@ bool show_start_page(int sockfd, char* username) { // the length needs to include the html tags for the username int added_length = username_length + 9; - char added[added_length + 1]; + char added[added_length]; // create added string strncpy(added, added_prefix, added_prefix_length); -- GitLab