]> jfr.im git - solanum.git/blobdiff - extensions/ip_cloaking_3.0.c
Use opernames not servernames for remote opers
[solanum.git] / extensions / ip_cloaking_3.0.c
index e648fc1bd27165e860b3498560e0a1c533bc26d4..2b6f2dcbb371abf27563a92909629168d3bf138d 100644 (file)
@@ -125,11 +125,11 @@ do_host_cloak_ip(const char *inbuf, char *outbuf)
 
        if(ipv6)
        {
-           snprintf(outbuf, HOSTLEN, "%s:%x", buf, accum);
+           snprintf(outbuf, HOSTLEN, "%.60s:%x", buf, accum);
        }
        else
        {
-           snprintf(outbuf, HOSTLEN, "%s.%x", buf, accum);
+           snprintf(outbuf, HOSTLEN, "%.60s.%x", buf, accum);
        }
 }