diff options
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 4 |
1 files 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 |