diff options
| author | Peter Eisentraut | 2007-02-07 00:28:55 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2007-02-07 00:28:55 +0000 |
| commit | 4f64a07bee090fe559055fbe866ad9aa3bf001ee (patch) | |
| tree | 550fa75aad085b6c2e16b15d2bae670e2a3fbe5b /src/bin | |
| parent | 5b706ba481cefa1a9bedc81fdd9c6d6ed8ccde7b (diff) | |
Add strlcat() from OpenBSD, to be used for replacing strncat and other
strange coding practices.
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg_config/pg_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_config/pg_config.c b/src/bin/pg_config/pg_config.c index e85d0dfcbbd..40ff76fb727 100644 --- a/src/bin/pg_config/pg_config.c +++ b/src/bin/pg_config/pg_config.c @@ -17,7 +17,7 @@ * * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.23 2007/01/05 22:19:48 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.24 2007/02/07 00:28:54 petere Exp $ * *------------------------------------------------------------------------- */ @@ -213,7 +213,7 @@ show_pgxs(bool all) if (all) printf("PGXS = "); get_pkglib_path(mypath, path); - strncat(path, "/pgxs/src/makefiles/pgxs.mk", MAXPGPATH - 1 - strlen(path)); + strlcat(path, "/pgxs/src/makefiles/pgxs.mk", sizeof(path)); cleanup_path(path); printf("%s\n", path); } |
