]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
ip_cloaking: fix digits in hostnames
authorJilles Tjoelker <redacted>
Fri, 19 Sep 2008 21:42:28 +0000 (23:42 +0200)
committerJilles Tjoelker <redacted>
Fri, 19 Sep 2008 21:42:28 +0000 (23:42 +0200)
extensions/ip_cloaking.c

index 657ab646b89800f6f6bf6299b463316c043b15c8..f4fb75e33e9395fba4e440ab4c74bbfc751590f9 100644 (file)
@@ -161,7 +161,7 @@ do_host_cloak_host(const char *inbuf, char *outbuf)
        {
                if (isdigit(*tptr))
                {
-                       *tptr = (*tptr + accum) % 10;
+                       *tptr = '0' + (*tptr + accum) % 10;
                }
 
                accum = (accum << 1) | (accum >> 31);