From 9cf7c7f8e6adb924ae43d980ad5a14bd977e0948 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 29 Apr 2024 05:18:47 +0000 Subject: Sun, Apr 28, 2024, 10:18 PM -07:00 --- wk5/pset/speller/dictionary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index cd10c35..7186765 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -31,11 +31,11 @@ bool check(const char *word) node *current = table[val]; // buffer string becasue word is const - char *buff + char *buff[strlen(word)]; // make word lowercase for (int i = 0; word[i] != '\0'; i++) { - word[i] = tolower(word[i]); + buff[i] = (tolower(word[i])); } // check all nodes in the bucket -- cgit v1.2.3