diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 02:05:44 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 02:05:44 +0000 |
commit | b236b6800f7d04e307ff8d1b3eb19dbe357e63b6 (patch) | |
tree | 7dac0009da30930755d0c39079c473640b1e925f /wk5/pset/speller/dictionary.c | |
parent | 80963a429fb8b71d4ca3cc7665fb37d36045d584 (diff) |
Sun, Apr 28, 2024, 7:05 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |