]> jfr.im git - solanum.git/blobdiff - ircd/hostmask.c
Support more human friendly k/d/x-line duration format
[solanum.git] / ircd / hostmask.c
index 79eabf82fbdf2b0a763debc3aaaba484e3fc5fdf..6b50b5e56b44d5f260e955df37b69bf12dff048f 100644 (file)
@@ -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);
 }