diff options
Diffstat (limited to 'wk5')
-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 dab6d2b..0a3549d 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -52,7 +52,7 @@ bool load(const char *dictionary) //read each word in dictionary char c; - fscanf(file, "%s", &c) + while(fscanf(source, "%s", word) != ) // Close the dictionary file fclose(source); |