diff options
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 8f212fc..d5b0ac6 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -4,6 +4,7 @@ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "dictionary.h" // Represents a node in a hash table @@ -93,7 +94,7 @@ bool load(const char *dictionary) { ptr->next = table[val]->next; } - table[val]->next = *ptr; + table[val]->next = ptr; } // Close the dictionary file |