summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/wc.c2
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++;