fixed warning with bad bracket placement

This commit is contained in:
= 2025-11-05 20:44:15 +01:00
parent 9b54d8913e
commit a763ea910e

View File

@ -24,7 +24,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
char readLine[MAX_LINE_LEN]; char readLine[MAX_LINE_LEN];
// collects the words line by line and adds them to the list, if its not exceeding the max word count // collects the words line by line and adds them to the list, if its not exceeding the max word count
while (fgets(readLine, sizeof(readLine), file) != (NULL && wordcount < maxWordCount)) { while (fgets(readLine, sizeof(readLine), file) != NULL && (wordcount < maxWordCount)) {
char word[MAX_WORD_LEN]; char word[MAX_WORD_LEN];
int wordIndex = 0; int wordIndex = 0;