From 259fe28f33e601b51b6e9c3343f37762bdc04409 Mon Sep 17 00:00:00 2001 From: Andreas Binner Date: Fri, 30 Oct 2026 10:07:56 +0100 Subject: [PATCH] fixed small errors --- Startcode/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Startcode/input.c b/Startcode/input.c index 65541fd..0883c58 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -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