From 2f6e3fe540ecd08282135038a025b1404af8d6c0 Mon Sep 17 00:00:00 2001 From: ChouTatsumi <choutatsumi@gmail.com> Date: Mon, 29 Apr 2019 20:55:04 +1000 Subject: [PATCH] test 20:54 --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 9407f42..d201fc0 100644 --- a/server.c +++ b/server.c @@ -385,7 +385,7 @@ bool show_start_page(int sockfd, char* username) { int added_prefix_length = strlen(added_prefix); printf("added_prefix_len = %d\r\n", added_prefix_length); char* added_suffix = "</p>\n\n"; - int added_suffix_length = sizeof(added_suffix); + int added_suffix_length = strlen(added_suffix); printf("added_suffix_len = %d\r\n", added_prefix_length); // the length needs to include the html tags for the username int added_length = username_length + 9; -- GitLab