From 4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 10 Feb 2007 14:58:55 +0000 Subject: StrNCpy -> strlcpy (not complete) --- src/backend/tcop/postgres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/tcop/postgres.c') 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': -- cgit v1.2.3