summaryrefslogtreecommitdiff
path: root/src/backend/utils/fmgr
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2007-02-07 00:52:35 +0000
committerPeter Eisentraut <peter_e@gmx.net>2007-02-07 00:52:35 +0000
commit16059d39a04f5307e9b4dade10e70e5a4939a6db (patch)
treee9c9a3248870a743e30edbba47c0092ecf8b1832 /src/backend/utils/fmgr
parentf11aa82d0378c48da9fc67e479699a1f8bb99483 (diff)
Replace some strncpy() by strlcpy().
Diffstat (limited to 'src/backend/utils/fmgr')
-rw-r--r--src/backend/utils/fmgr/dfmgr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c
index fdbcc69cdec..f660c19e29b 100644
--- a/src/backend/utils/fmgr/dfmgr.c
+++ b/src/backend/utils/fmgr/dfmgr.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.93 2007/01/05 22:19:43 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.94 2007/02/07 00:52:35 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -539,8 +539,7 @@ find_in_dynamic_libpath(const char *basename)
len = piece - p;
piece = palloc(len + 1);
- strncpy(piece, p, len);
- piece[len] = '\0';
+ strlcpy(piece, p, len + 1);
mangled = substitute_libpath_macro(piece);
pfree(piece);