X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/9f6bbe3cf9c786c5089bfd605315aed5268e8974..bf9ca219d31f0878e88d5e43e3e30f96b2437192:/src/blacklist.c diff --git a/src/blacklist.c b/src/blacklist.c index 50de9ad..572cadd 100644 --- a/src/blacklist.c +++ b/src/blacklist.c @@ -106,7 +106,7 @@ static void blacklist_dns_callback(void *vptr, struct DNSReply *reply) if (rb_dlink_list_length(&blcptr->client_p->preClient->dnsbl_queries) == 0 && blcptr->client_p->flags & FLAGS_SENTUSER && !EmptyString(blcptr->client_p->name)) { char buf[USERLEN + 1]; - strlcpy(buf, blcptr->client_p->username, sizeof buf); + rb_strlcpy(buf, blcptr->client_p->username, sizeof buf); register_local_user(blcptr->client_p, blcptr->client_p, buf); } @@ -154,8 +154,8 @@ struct Blacklist *new_blacklist(char *name, char *reject_reason) } else blptr->status &= ~CONF_ILLEGAL; - strlcpy(blptr->host, name, HOSTLEN); - strlcpy(blptr->reject_reason, reject_reason, IRCD_BUFSIZE); + rb_strlcpy(blptr->host, name, HOSTLEN); + rb_strlcpy(blptr->reject_reason, reject_reason, IRCD_BUFSIZE); blptr->lastwarning = 0; return blptr;