generated from freudenreichan/info2Praktikum-Wortsalat
fixed warning with bad bracket placement
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user