diff --git a/Start_Mac/input.c b/Start_Mac/input.c index dcec983..16a8cac 100644 --- a/Start_Mac/input.c +++ b/Start_Mac/input.c @@ -19,7 +19,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) strncpy(words[anzahlWoerter], wort, anzahlWoerter -1); words[anzahlWoerter][MAX_WORD_LEN - 1]= '\0'; anzahlWoerter++; - wort = strtok(NULL, ",; \n"); + *wort = strtok(NULL, ",; \n"); } diff --git a/Start_Windows/input.c b/Start_Windows/input.c index dcec983..16a8cac 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -19,7 +19,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) strncpy(words[anzahlWoerter], wort, anzahlWoerter -1); words[anzahlWoerter][MAX_WORD_LEN - 1]= '\0'; anzahlWoerter++; - wort = strtok(NULL, ",; \n"); + *wort = strtok(NULL, ",; \n"); }