diff --git a/input.c b/input.c index fc62d00..ad4907b 100644 --- a/input.c +++ b/input.c @@ -42,12 +42,6 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) strncpy(words[wordCount], token, MAX_WORD_LEN -1); words[wordCount][MAX_WORD_LEN -1] = '\0'; - - words[wordCount][end] = '\0'; - end--; - } - - wordCount++; token = strtok(NULL, ",;\n"); }