aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index 220bc3d..c4389a4 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -607,7 +607,7 @@ com_password(int p, param_list param)
parray[p].passwd = NULL;
}
- strcpy(salt, fics_getsalt());
+ strlcpy(salt, fics_getsalt(), sizeof salt);
parray[p].passwd = xstrdup(crypt(newpassword, salt));
pprintf(p, "Password changed to \"%s\".\n", newpassword);