diff options
author | Tom Lane | 2006-09-27 16:19:42 +0000 |
---|---|---|
committer | Tom Lane | 2006-09-27 16:19:42 +0000 |
commit | 1d45168f4b4d21c33d7aaa23b8203e2a4a43545e (patch) | |
tree | e4c8097398ae5c987369490f4b354551191607d3 /src/bin | |
parent | 9ba40653129f0c538ac8d4f0488512a10819567f (diff) |
Fix some misuses of strncat().
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 e84cd7a1307..edd4a6af368 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-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.20 2006/06/06 22:41:09 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.21 2006/09/27 16:19:42 tgl 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); + strncat(path, "/pgxs/src/makefiles/pgxs.mk", MAXPGPATH - 1 - strlen(path)); cleanup_path(path); printf("%s\n", path); } |