input Fehler behoben

This commit is contained in:
gsqsimjaa 2025-10-30 16:35:43 +01:00
parent 52cb0901e7
commit fb5e0702bb
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}

View File

@ -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");
}