From 297cb0af6eb864d0068b536ce58492905b5606dd Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:45:22 +0000 Subject: Sun, Apr 28, 2024, 4:45 PM -07:00 --- wk5/pset/speller/dictionary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wk5/pset') diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 8f212fc..d5b0ac6 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "dictionary.h" // Represents a node in a hash table @@ -93,7 +94,7 @@ bool load(const char *dictionary) { ptr->next = table[val]->next; } - table[val]->next = *ptr; + table[val]->next = ptr; } // Close the dictionary file -- cgit v1.2.3