← Commit list

741f40b58

Matt Kraai
Matt Kraai
2001-12-11
FAILED Duration: 347s

Subject

Use an int to hold the result of fgetc (bug noted by David Kimdon).

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/wc.c+1 -1
@@ -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++;