Fix Win32 pg_dumpall check. REL8_0_0BETA1
authorBruce Momjian
Mon, 9 Aug 2004 03:12:38 +0000 (03:12 +0000)
committerBruce Momjian
Mon, 9 Aug 2004 03:12:38 +0000 (03:12 +0000)
src/port/exec.c

index 30d7a55c1d29c9f6554961ec85c6082ecc47c825..440c63f0c52d062dfef80ab323bff8233186869f 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/port/exec.c,v 1.19 2004/08/08 03:21:39 momjian Exp $
+ *   $PostgreSQL: pgsql/src/port/exec.c,v 1.20 2004/08/09 03:12:38 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -392,8 +392,8 @@ static char *pipe_read_line(char *cmd, char *line, int maxsize)
                line[strlen(line)-2] == '\r' &&
                line[strlen(line)-1] == '\n')
            {
-               line[strlen(line)-2] == '\n';
-               line[strlen(line)-1] == '\0';
+               line[strlen(line)-2] = '\n';
+               line[strlen(line)-1] = '\0';
            }
 
            /*