From e2606551a2853e90cffa264d70a159ba61e0cbe4 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 29 Nov 2011 15:50:54 -0600 Subject: [PATCH] Fix potential buffer-overflow from malformed RSFNC request. --- modules/m_services.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_services.c b/modules/m_services.c index 32a1622a..5295c762 100644 --- a/modules/m_services.c +++ b/modules/m_services.c @@ -236,7 +236,7 @@ doit: use_id(target_p), parv[2], (long) target_p->tsinfo); del_from_client_hash(target_p->name, target_p); - strcpy(target_p->name, parv[2]); + rb_strlcpy(target_p->name, parv[2], NICKLEN); add_to_client_hash(target_p->name, target_p); monitor_signon(target_p);