From 6b08fbe5d8a635331fb788779ef1df4e29587ac6 Mon Sep 17 00:00:00 2001 From: kukemuna Date: Wed, 20 Mar 2024 23:32:10 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionary.c b/dictionary.c index aa87819..0c73f0b 100644 --- a/dictionary.c +++ b/dictionary.c @@ -32,7 +32,7 @@ bool check(const char *word) // +1 for NUL character char lword[strlen(word) + 1]; - for (int i = 0; i < strlen(word); i++) + for (int i = 0; i < strlen(word) + 1; i++) { lword[i] = tolower((word[i])); }