diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 02:20:47 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 02:20:47 +0000 |
commit | d4da911b235996bd4439a6ee09bf090524407181 (patch) | |
tree | c3ff6aaf8a49930c66fcccf47221498de37f663a /wk5/pset/speller | |
parent | 313f79430b810d1643cdfa5b360c2bd489d6790d (diff) |
Sun, Apr 28, 2024, 7:20 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-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 6548bdf..12035a5 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); + strcpy(ptr->word, word); // set the new ptr ptr->next = NULL; // hash the word to find the bucket it goes in |