From: Jim Meyering Date: Fri, 23 Jan 2004 09:26:24 +0000 (+0000) Subject: (paste_parallel): Declare local, chr, to be of type X-Git-Tag: v5.1.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a28a8b7cefb07024376244eed4365d310194c1e9;p=thirdparty%2Fcoreutils.git (paste_parallel): Declare local, chr, to be of type `int', not `char', since it must hold EOF. This bug would make paste infloop on some systems. --- diff --git a/src/paste.c b/src/paste.c index ccd0e8baf5..e798beb9a4 100644 --- a/src/paste.c +++ b/src/paste.c @@ -202,7 +202,7 @@ paste_parallel (size_t nfiles, char **fnamptr) for (i = 0; fileptr[i] != ENDLIST && files_open; i++) { - char chr IF_LINT (= 0); /* Input character. */ + int chr IF_LINT (= 0); /* Input character. */ size_t line_length = 0; /* Number of chars in line. */ if (fileptr[i] != CLOSED) {