diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2007-02-10 14:58:55 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2007-02-10 14:58:55 +0000 |
| commit | 4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1 (patch) | |
| tree | 8e6e3011902f42b082c07f0fc7bf8edbd94b2a09 /src/bin/initdb/initdb.c | |
| parent | 1a1474b4c019c09032114906a049bbe3b70052fc (diff) | |
| download | postgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.tar.gz | |
StrNCpy -> strlcpy (not complete)
Diffstat (limited to 'src/bin/initdb/initdb.c')
| -rw-r--r-- | src/bin/initdb/initdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index ea7b949aa0..5b559aecc9 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -42,7 +42,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.131 2007/02/01 19:10:28 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.132 2007/02/10 14:58:55 petere Exp $ * *------------------------------------------------------------------------- */ @@ -2706,7 +2706,7 @@ main(int argc, char *argv[]) char full_path[MAXPGPATH]; if (find_my_exec(argv[0], full_path) < 0) - StrNCpy(full_path, progname, MAXPGPATH); + strlcpy(full_path, progname, sizeof(full_path)); if (ret == -1) fprintf(stderr, |
