From: Matt Kraai Date: Tue, 11 Dec 2001 16:06:02 +0000 (-0000) Subject: Use an int to hold the result of fgetc (bug noted by David Kimdon). X-Git-Tag: 0_60_3~168 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=741f40b58edf3644c6bc8e6863ee9ad681b21562;p=oweals%2Fbusybox.git Use an int to hold the result of fgetc (bug noted by David Kimdon). --- 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++;