]> jfr.im git - solanum.git/blobdiff - extensions/ip_cloaking_4.0.c
extensions/helpops: Do not use oper:hidden.
[solanum.git] / extensions / ip_cloaking_4.0.c
index 82fdad95092be07ac3f4da3d92123db079d5ddc8..df9a4117ac06141315b10e391202a9d7838da78f 100644 (file)
@@ -141,7 +141,7 @@ do_host_cloak_host(const char *inbuf, char *outbuf)
                if (*tptr == '.')
                        break;
 
-               if (isdigit(*tptr) || *tptr == '-')
+               if (isdigit((unsigned char)*tptr) || *tptr == '-')
                        continue;
 
                *tptr = b26_alphabet[(*tptr + accum) % 26];
@@ -153,7 +153,7 @@ do_host_cloak_host(const char *inbuf, char *outbuf)
        /* pass 2: scramble each number in the address */
        for (tptr = outbuf; *tptr != '\0'; tptr++)
        {
-               if (isdigit(*tptr))
+               if (isdigit((unsigned char)*tptr))
                        *tptr = '0' + (*tptr + accum) % 10;
 
                accum = (accum << 1) | (accum >> 31);