From a763ea910e91de211074c607b325f0ac911940a3 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 5 Nov 2025 20:44:15 +0100 Subject: [PATCH] fixed warning with bad bracket placement --- Start_Linux/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Start_Linux/input.c b/Start_Linux/input.c index 370928f..afdf506 100644 --- a/Start_Linux/input.c +++ b/Start_Linux/input.c @@ -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;