]> jfr.im git - solanum.git/blobdiff - ircd/hash.c
Add a comment explaining match_arrange_stars
[solanum.git] / ircd / hash.c
index 4341dbbdcfa1de7ed2db4ae83686befeefc73dbd..cd8e8aa8dc31c4262bf7f167d21b0d548f5f6d75 100644 (file)
@@ -426,7 +426,7 @@ get_or_create_channel(struct Client *client_p, const char *chname, bool *isnew)
                }
                len = CHANNELLEN;
                t = LOCAL_COPY(s);
-               *(t + CHANNELLEN) = '\0';
+               t[len] = '\0';
                s = t;
        }