diff --git a/Startcode/input.c b/Startcode/input.c index f4d959f..94afa4e 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -28,13 +28,13 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) } } - for(int i = 0; i < MAX_WORD_LEN; i++) + for(int i = 0; i < maxWordCount; i++) { for(int j = 0; j < MAX_WORD_LEN; j++) { words[i][j] = toupper(words[i][j]); } } - + return count; } \ No newline at end of file diff --git a/Startcode/runTests b/Startcode/runTests index d7706c1..b83b47d 100755 Binary files a/Startcode/runTests and b/Startcode/runTests differ