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/backend/postmaster/pgarch.c | |
parent | 1a1474b4c019c09032114906a049bbe3b70052fc (diff) |
StrNCpy -> strlcpy (not complete)
Diffstat (limited to 'src/backend/postmaster/pgarch.c')
-rw-r--r-- | src/backend/postmaster/pgarch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/postmaster/pgarch.c b/src/backend/postmaster/pgarch.c index 2f798f40b3a..991a22191f9 100644 --- a/src/backend/postmaster/pgarch.c +++ b/src/backend/postmaster/pgarch.c @@ -19,7 +19,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.28 2007/01/05 22:19:36 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.29 2007/02/10 14:58:54 petere Exp $ * *------------------------------------------------------------------------- */ @@ -429,14 +429,14 @@ pgarch_archiveXlog(char *xlog) case 'p': /* %p: relative path of source file */ sp++; - StrNCpy(dp, pathname, endp - dp); + strlcpy(dp, pathname, endp - dp); make_native_path(dp); dp += strlen(dp); break; case 'f': /* %f: filename of source file */ sp++; - StrNCpy(dp, xlog, endp - dp); + strlcpy(dp, xlog, endp - dp); dp += strlen(dp); break; case '%': |