0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 16:30:52 +01:00

ip_cloaking: fix digits in hostnames

This commit is contained in:
Jilles Tjoelker 2008-09-19 23:42:28 +02:00
parent e1c1f08d24
commit 9d99a3096c

View 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);