input Fehler behoben

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

No files matched your search

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