From 741f40b58edf3644c6bc8e6863ee9ad681b21562 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Tue, 11 Dec 2001 16:06:02 +0000 Subject: Use an int to hold the result of fgetc (bug noted by David Kimdon). --- coreutils/wc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/wc.c') diff --git a/coreutils/wc.c b/coreutils/wc.c index 9f818ea72..fb81c0a8f 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c @@ -68,7 +68,7 @@ static void wc_file(FILE * file, const char *name) unsigned int length = 0; unsigned int linepos = 0; char in_word = 0; - char c; + int c; while ((c = getc(file)) != EOF) { chars++; -- cgit v1.2.3