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

test 20:52

parent a3522a40
No related branches found
No related tags found
No related merge requests found
......@@ -385,11 +385,10 @@ 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 = strlen(added_suffix);
int added_suffix_length = sizeof(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 + added_prefix_length + added_suffix_length;
int added_length = username_length + 9;
char added[added_length];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment