strcpy: mass-migrate to strlcpy where appropriate
This commit is contained in:
parent
02ca4405a0
commit
4d5a902f08
13 changed files with 25 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue