diff --git a/server.c b/server.c index 576a6b32beb6dc6ae9dcdde72eed558b437d73cd..7711f97219ca18ce468140e59e5b799966f48357 100644 --- a/server.c +++ b/server.c @@ -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];