mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
StrNCpy -> strlcpy (not complete)
This commit is contained in:
@ -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':
|
||||
|
Reference in New Issue
Block a user