Skip to content
Snippets Groups Projects
Commit 2f6e3fe5 authored by ChouTatsumi's avatar ChouTatsumi
Browse files

test 20:54

parent dcdf421d
Branches
No related tags found
No related merge requests found
...@@ -385,7 +385,7 @@ bool show_start_page(int sockfd, char* username) { ...@@ -385,7 +385,7 @@ bool show_start_page(int sockfd, char* username) {
int added_prefix_length = strlen(added_prefix); int added_prefix_length = strlen(added_prefix);
printf("added_prefix_len = %d\r\n", added_prefix_length); printf("added_prefix_len = %d\r\n", added_prefix_length);
char* added_suffix = "</p>\n\n"; 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); printf("added_suffix_len = %d\r\n", added_prefix_length);
// the length needs to include the html tags for the username // the length needs to include the html tags for the username
int added_length = username_length + 9; int added_length = username_length + 9;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment