Fix oplevel, chkconf and ipv6 bugs.
[ircu2.10.12-pk.git] / ircd / numnicks.c
index 781ff6f8a263513a9f591fb5ae32af66110b6174..79a42032b1d8d1edaaafee01b7e350c2c8c49912 100644 (file)
@@ -427,7 +427,7 @@ void base64toip(const char* input, struct irc_in_addr* addr)
     do {
       if (*input == '_') {
         unsigned int left;
-        for (left = (strlen(input) - 1) / 3; left; left--)
+        for (left = (25 - strlen(input)) / 3; left; left--)
           addr->in6_16[pos++] = 0;
         input++;
       } else {