aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth.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/interfaces/libpq/fe-auth.c
parent1a1474b4c019c09032114906a049bbe3b70052fc (diff)
downloadpostgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.tar.gz
postgresql-4ab8fcba8a33c7b0be3b7a9ff3aa7121d6b630f1.zip
StrNCpy -> strlcpy (not complete)
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r--src/interfaces/libpq/fe-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c
index 24ea3db0d20..82d7394457d 100644
--- a/src/interfaces/libpq/fe-auth.c
+++ b/src/interfaces/libpq/fe-auth.c
@@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.122 2007/01/05 22:20:00 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.123 2007/02/10 14:58:55 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -418,7 +418,7 @@ pg_password_sendauth(PGconn *conn, const char *password, AuthRequest areq)
{
char salt[3];
- StrNCpy(salt, conn->cryptSalt, 3);
+ strlcpy(salt, conn->cryptSalt, sizeof(salt));
crypt_pwd = crypt(password, salt);
break;
}