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

bug 20:44

parent 15d13127
Branches
No related tags found
No related merge requests found
...@@ -388,7 +388,7 @@ bool show_start_page(int sockfd, char* username) { ...@@ -388,7 +388,7 @@ bool show_start_page(int sockfd, char* username) {
// 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;
char added[added_length + 1]; char added[added_length];
// create added string // create added string
strncpy(added, added_prefix, added_prefix_length); strncpy(added, added_prefix, added_prefix_length);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment