Commit 2732932d authored by Bruce Momjian's avatar Bruce Momjian

Improve comment.

parent 6c3561b9
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/port/exec.c,v 1.17 2004/07/26 01:48:00 momjian Exp $ * $PostgreSQL: pgsql/src/port/exec.c,v 1.18 2004/08/08 02:22:55 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -383,8 +383,10 @@ static char *pipe_read_line(char *cmd, char *line, int maxsize) ...@@ -383,8 +383,10 @@ static char *pipe_read_line(char *cmd, char *line, int maxsize)
/* So we read some data */ /* So we read some data */
retval = line; retval = line;
/* We emulate fgets() behaviour. So if there is no newline /*
* at the end, we add one... */ * We emulate fgets() behaviour. So if there is no newline
* at the end, we add one...
*/
if (line[strlen(line)-1] != '\n') if (line[strlen(line)-1] != '\n')
strcat(line,"\n"); strcat(line,"\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment