generated from freudenreichan/info2Praktikum-Wortsalat
fixed warning with bad bracket placement
This commit is contained in:
parent
9b54d8913e
commit
a763ea910e
@ -24,7 +24,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
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
|
||||
while (fgets(readLine, sizeof(readLine), file) != (NULL && wordcount < maxWordCount)) {
|
||||
while (fgets(readLine, sizeof(readLine), file) != NULL && (wordcount < maxWordCount)) {
|
||||
|
||||
char word[MAX_WORD_LEN];
|
||||
int wordIndex = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user