From b236b6800f7d04e307ff8d1b3eb19dbe357e63b6 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 29 Apr 2024 02:05:44 +0000 Subject: Sun, Apr 28, 2024, 7:05 PM -07:00 --- wk5/pset/speller/dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wk5/pset') diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 626e965..32b3ff9 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -88,7 +88,7 @@ bool load(const char *dictionary) return false; } // copy word from fscanf into node using strcpy - strcpy(ptr->word, word); + strcpy(word, ptr->word); // set the new ptr ptr->next = NULL; // hash the word to find the bucket it goes in -- cgit v1.2.3