strcpy: mass-migrate to strlcpy where appropriate

This commit is contained in:
Aaron Jones 2016-05-15 03:57:16 +00:00
parent 02ca4405a0
commit 4d5a902f08
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4
13 changed files with 25 additions and 25 deletions

View file

@ -165,7 +165,7 @@ m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *
if(!*source_p->id)
{
/* Allocate a UID. */
strcpy(source_p->id, generate_uid());
rb_strlcpy(source_p->id, generate_uid(), sizeof(source_p->id));
add_to_id_hash(source_p->id, source_p);
}