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

ready to merge

parent caee15de
No related branches found
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
int added_length = strlen(added) + 1;
int added_length = strlen(added);
// get the size of the file
struct stat st;
......@@ -368,8 +368,6 @@ bool show_modified_page(int sockfd, const char* htmldir, char* added,
// copy the username
strncpy(buff + p2, added, added_length);
print_buff(buff);
if (write(sockfd, buff, size) < 0) {
perror("write");
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment