Skip to content
Snippets Groups Projects
Commit 6a7a7c1e authored by Abhisha Nirmalathas's avatar Abhisha Nirmalathas
Browse files

bug fix, keyword print

parent e7a73d37
Branches
No related tags found
No related merge requests found
......@@ -260,7 +260,7 @@ static bool handle_http_request(int sockfd, User_list *users)
text_render_request(buff,sockfd, "4_accepted.html", keywords);
free(keywords);
}
free(keyword);
// free(keyword);
}
}
}
......
......@@ -109,6 +109,7 @@ void change_player_status(int user_id, User_list* users, STATUS status){
}
bool keyword_match(User* user, char* keyword){
printf("keyword is %s\n\n", keyword);
for(int i=0; i <user->n_keywords;i++){
printf("words being matched is with %s and %s\n", keyword, user->keywords[i]);
if(strcmp(keyword, user->keywords[i]) == 0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment