diff options
author | Matt Kraai | 2001-12-11 16:06:02 +0000 |
---|---|---|
committer | Matt Kraai | 2001-12-11 16:06:02 +0000 |
commit | 741f40b58edf3644c6bc8e6863ee9ad681b21562 (patch) | |
tree | 19e2ebb81d3465130d39ee5de09ea08a7730b684 /coreutils/wc.c | |
parent | 72812d31432a951ee068046dfbe40a239de56ea3 (diff) | |
download | busybox-741f40b58edf3644c6bc8e6863ee9ad681b21562.zip busybox-741f40b58edf3644c6bc8e6863ee9ad681b21562.tar.gz |
Use an int to hold the result of fgetc (bug noted by David Kimdon).
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r-- | coreutils/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c index 9f818ea..fb81c0a 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++; |