summaryrefslogtreecommitdiff
path: root/wk5/pset
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset')
-rw-r--r--wk5/pset/speller/dictionary.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c
index 615b3ba..9eda460 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -50,9 +50,7 @@ unsigned int hash(const char *word)
// (sum of (letter - 'A') % 26) of a word to get a value of where to store it in the hash table
int val = 0;
int i = 0;
- char *spill[LENGTH];
- strcpy(spill, word);
- while (spill[i] != "/0")
+ while (word[i] != "/0")
{
val += (word[i] % 26);
}