Skip to content

Commit c932588

Browse files
committed
updates
1 parent d50df35 commit c932588

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
all: server
44

55
server: globals.c account_login.c high_score.c main_game_server.c tictactoe.c helper.c game_dispatcher.c
6-
gcc -g globals.c helper.c account_login.c high_score.c tictactoe.c game_dispatcher.c main_game_server.c -o server
6+
gcc -Wall -g globals.c helper.c account_login.c high_score.c tictactoe.c game_dispatcher.c main_game_server.c -o server
77

88
clean:
99
rm server

high_score.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ char outro_message[MAX_BUF_SIZE] = {0};
1313

1414
bool handle_reset_winner_data(int client_fd, char* client_str)
1515
{
16-
memset(winners_list, sizeof(winners_list), 0);
17-
memset(outro_message, sizeof(outro_message), 0);
16+
memset(winners_list, 0, sizeof(winners_list));
17+
memset(outro_message, 0, sizeof(outro_message));
1818
strcpy(outro_message, "\nBetter Luck to our other participants next time!\n" );
1919
return true;
2020
}

0 commit comments

Comments
 (0)