Fix potential buffer-overflow from malformed RSFNC request.

This commit is contained in:
William Pitcock 2011-11-29 15:50:54 -06:00
parent 0cce01d388
commit e2606551a2

View file

@ -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);