diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 23:45:22 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 23:45:22 +0000 |
commit | 297cb0af6eb864d0068b536ce58492905b5606dd (patch) | |
tree | 015be581d46081864a808644d18339c9ed06237b | |
parent | ee7eac011f3d75933347636ead981dc91c65cace (diff) |
Sun, Apr 28, 2024, 4:45 PM -07:00
-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 |