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

bug 20:41

parent 0cc55490
Branches
No related tags found
No related merge requests found
......@@ -335,7 +335,7 @@ bool show_modified_page(int sockfd, const char* htmldir, char* added,
int n;
// the length needs to include the html tags for the username
long added_length = strlen(added);
int added_length = strlen(added);
// get the size of the file
struct stat st;
......@@ -386,7 +386,7 @@ bool show_start_page(int sockfd, char* username) {
char* added_suffix = "</p>\n\n";
int added_suffix_length = strlen(added_suffix);
// the length needs to include the html tags for the username
long added_length = username_length + 9;
int added_length = username_length + 9;
char added[added_length + 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment