From f8c138fd5838b647673cb63b98c4223cc694a763 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 28 Apr 2024 21:50:47 +0000 Subject: Sun, Apr 28, 2024, 2:50 PM -07:00 --- wk5/pset/speller/dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wk5/pset') 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); -- cgit v1.2.3