fixed small errors

This commit is contained in:
Andreas Binner committed 2026-10-30 10:07:56 +01:00
1 parent 9967eb3b09
commit 259fe28f33
1 file changed
+2 -2
+2 -2
View File
@@ -24,14 +24,14 @@ unsigned int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxW
static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount)
{
char *teiler = " ;,.\n";
char *teiler = " ;,.\r\n";
char *token;
int i = 0;
token = strtok(text, teiler);
while(token != NULL && i < maxWordCount)
while(token != NULL && i < (int)maxWordCount)
{
strncpy(words[i], token, MAX_WORD_LEN - 1);
//kleinbuchstaben --> GROßBUCHSTABEN