diff --git a/Start_Windows/input.c b/Start_Windows/input.c index f520559..e012629 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -55,7 +55,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) } i++; - } while ((i < MAX_LINE_LEN) && (word < maxWordCount)); + } while ((i < MAX_LINE_LEN) || (word < maxWordCount)); return word+1; } diff --git a/Start_Windows/input.o b/Start_Windows/input.o index 551665a..1991050 100644 Binary files a/Start_Windows/input.o and b/Start_Windows/input.o differ diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe index 4d20e10..7271c5b 100644 Binary files a/Start_Windows/runTests.exe and b/Start_Windows/runTests.exe differ diff --git a/Start_Windows/wordsalad_myversion.exe b/Start_Windows/wordsalad_myversion.exe index 9b57280..4801f98 100644 Binary files a/Start_Windows/wordsalad_myversion.exe and b/Start_Windows/wordsalad_myversion.exe differ