From a28a8b7cefb07024376244eed4365d310194c1e9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 23 Jan 2004 09:26:24 +0000 Subject: [PATCH] (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. --- src/paste.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2