diff --git a/ircd/hostmask.c b/ircd/hostmask.c index 79eabf82..6b50b5e5 100644 --- a/ircd/hostmask.c +++ b/ircd/hostmask.c @@ -710,8 +710,7 @@ show_iline_prefix(struct Client *sptr, struct ConfItem *aconf, char *name) *prefix_ptr++ = '^'; if(IsOper(sptr) && IsConfExemptLimits(aconf)) *prefix_ptr++ = '>'; - *prefix_ptr = '\0'; - strncpy(prefix_ptr, name, USERLEN); + rb_strlcpy(prefix_ptr, name, USERLEN + 1); return (prefix_of_host); }