diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 21:50:47 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 21:50:47 +0000 |
commit | f8c138fd5838b647673cb63b98c4223cc694a763 (patch) | |
tree | 5cd2abd19f11948c3209703f6d9e8de4b1cd704b /wk5/pset/speller | |
parent | 3bfe59b584aa19d4228f1bd55cd2183349194d0f (diff) |
Sun, Apr 28, 2024, 2:50 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-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); |