summaryrefslogtreecommitdiff
path: root/src/backend/libpq/ip.c
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/libpq/ip.c
parent1a1474b4c019c09032114906a049bbe3b70052fc (diff)
downloadpostgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.tar.gz
StrNCpy -> strlcpy (not complete)
Diffstat (limited to 'src/backend/libpq/ip.c')
-rw-r--r--src/backend/libpq/ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/ip.c b/src/backend/libpq/ip.c
index 977787f141..2e9bd98890 100644
--- a/src/backend/libpq/ip.c
+++ b/src/backend/libpq/ip.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.39 2007/01/05 22:19:29 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.40 2007/02/10 14:58:54 petere Exp $
*
* This file and the IPV6 implementation were initially provided by
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -175,9 +175,9 @@ pg_getnameinfo_all(const struct sockaddr_storage * addr, int salen,
if (rc != 0)
{
if (node)
- StrNCpy(node, "???", nodelen);
+ strlcpy(node, "???", nodelen);
if (service)
- StrNCpy(service, "???", servicelen);
+ strlcpy(service, "???", servicelen);
}
return rc;