aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 23:59:59 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 23:59:59 +0100
commit24f33c3bced5c431c1725101879a96f28cd258f5 (patch)
treef02637afe65e3f1ff741b844a25d992eab7eb4a5
parent388a84ffeace9dd76721c79ebff5c2215e43694f (diff)
Replaced unbounded call
-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);