aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2007-02-10 14:58:55 +0000
committerPeter Eisentraut <peter_e@gmx.net>2007-02-10 14:58:55 +0000
commit4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1 (patch)
tree8e6e3011902f42b082c07f0fc7bf8edbd94b2a09 /src/backend/utils
parent1a1474b4c019c09032114906a049bbe3b70052fc (diff)
downloadpostgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.tar.gz
postgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.zip
StrNCpy -> strlcpy (not complete)
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/misc/guc-file.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/misc/guc-file.l b/src/backend/utils/misc/guc-file.l
index 156fc94181d..c9b6958cee5 100644
--- a/src/backend/utils/misc/guc-file.l
+++ b/src/backend/utils/misc/guc-file.l
@@ -4,7 +4,7 @@
*
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.46 2007/01/05 22:19:46 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.47 2007/02/10 14:58:55 petere Exp $
*/
%{
@@ -218,7 +218,7 @@ ParseConfigFile(const char *config_file, const char *calling_file,
if (!is_absolute_path(config_file))
{
Assert(calling_file != NULL);
- StrNCpy(abs_path, calling_file, MAXPGPATH);
+ strlcpy(abs_path, calling_file, sizeof(abs_path));
get_parent_directory(abs_path);
join_path_components(abs_path, abs_path, config_file);
canonicalize_path(abs_path);