From 24f33c3bced5c431c1725101879a96f28cd258f5 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 3 Jan 2024 23:59:59 +0100 Subject: Replaced unbounded call --- FICS/comproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FICS') 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); -- cgit v1.2.3