]> jfr.im git - solanum.git/commitdiff
Avoid show_iline_prefix showing leftovers (#266)
authorEric Mertens <redacted>
Sat, 21 Aug 2021 15:54:16 +0000 (08:54 -0700)
committerGitHub <redacted>
Sat, 21 Aug 2021 15:54:16 +0000 (08:54 -0700)
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);
 }