mirror of https://github.com/mirror/busybox.git
Use an int to hold the result of fgetc (bug noted by David Kimdon).
parent
72812d3143
commit
741f40b58e
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue