]> jfr.im git - solanum.git/blobdiff - extensions/ip_cloaking_old.c
chmode: use NULL for priv argument when auspex:cmodes priv is not needed
[solanum.git] / extensions / ip_cloaking_old.c
index ca4f9111494e5644b7af3e518fff9c30f628cf47..8333e362ad7ced50f8c6cdf8c1018a98cb6f1c11 100644 (file)
@@ -158,7 +158,7 @@ check_new_user(void *vdata)
                source_p->umodes &= ~user_modes['h'];
                return;
        }
-       source_p->localClient->mangledhost = rb_malloc(HOSTLEN);
+       source_p->localClient->mangledhost = rb_malloc(HOSTLEN + 1);
        if (!irccmp(source_p->orighost, source_p->sockhost))
                do_host_cloak(source_p->orighost, source_p->localClient->mangledhost, 1);
        else