bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-5.1.1: paste infloops on PPC: patch


From: Jim Meyering
Subject: coreutils-5.1.1: paste infloops on PPC: patch
Date: Fri, 23 Jan 2004 16:44:01 +0100

Here's the fix for the paste bug introduced in coreutils-5.1.1.

        * src/paste.c (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.  Test failures reported by Nelson
        H. F. Beebe and Christian Krackowizer.

Index: src/paste.c
===================================================================
RCS file: /fetish/cu/src/paste.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -p -u -r1.71 -r1.72
--- src/paste.c 21 Jan 2004 23:37:59 -0000      1.71
+++ src/paste.c 23 Jan 2004 09:26:24 -0000      1.72
@@ -202,7 +202,7 @@ paste_parallel (size_t nfiles, char **fn
 
       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)
            {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]