diff options
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 |