summaryrefslogtreecommitdiff
path: root/src/paste.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-23 09:26:24 +0000
committerJim Meyering <jim@meyering.net>2004-01-23 09:26:24 +0000
commita28a8b7cefb07024376244eed4365d310194c1e9 (patch)
treeb2127f93d27f146cc054a5e32ef69f9e64ba199a /src/paste.c
parent7574b1cde37c2f9cf8c55fd7c1b88b08aac670d2 (diff)
downloadcoreutils-a28a8b7cefb07024376244eed4365d310194c1e9.tar.xz
(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.
Diffstat (limited to 'src/paste.c')
-rw-r--r--src/paste.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/paste.c b/src/paste.c
index ccd0e8baf..e798beb9a 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)
{