From 2cd06fd3845cc97ba83422adb261c30751ce92de Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 28 Apr 2024 22:42:00 +0000 Subject: Sun, Apr 28, 2024, 3:42 PM -07:00 --- wk5/pset/speller/dictionary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wk5/pset/speller') diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index db74939..5476dea 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -74,8 +74,9 @@ bool load(const char *dictionary) // put new node at begining of bucket if (table(val)->next != NULL) { - ptr->next = table(0)->next; + ptr->next = table(val)->next; } + table(val)->next = *ptr; } /* -- cgit v1.2.3