aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2007-02-10 14:58:55 +0000
committerPeter Eisentraut <peter_e@gmx.net>2007-02-10 14:58:55 +0000
commit4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1 (patch)
tree8e6e3011902f42b082c07f0fc7bf8edbd94b2a09 /src/backend/tcop/postgres.c
parent1a1474b4c019c09032114906a049bbe3b70052fc (diff)
downloadpostgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.tar.gz
postgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.zip
StrNCpy -> strlcpy (not complete)
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index c9d8c32f92d..51eb8fabcf2 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.521 2007/01/05 22:19:39 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.522 2007/02/10 14:58:55 petere Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -2846,7 +2846,7 @@ PostgresMain(int argc, char *argv[], const char *username)
case 'r':
/* send output (stdout and stderr) to the given file */
if (secure)
- StrNCpy(OutputFileName, optarg, MAXPGPATH);
+ strlcpy(OutputFileName, optarg, MAXPGPATH);
break;
case 'S':