Removed the malloc calls to prevent memory leak at the end of the program

This commit is contained in:
2017-08-24 00:03:06 +02:00
parent 76c6830b89
commit 2c3376202d
2 changed files with 25 additions and 38 deletions

View File

@@ -26,7 +26,7 @@ typedef struct {
char currentWord[MAXWORDLENGTH];
char wrongCharacters[DEFAULTTRIES];
int trollEnabled;
char *alphabet;
char alphabet[ALPHABET_NUM + 1];
time_t startTime;
time_t endTime;
int wordRows;