From 9d99a3096c2802ac2c8a3b8af9b79399b41d7606 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 19 Sep 2008 23:42:28 +0200 Subject: [PATCH] ip_cloaking: fix digits in hostnames --- extensions/ip_cloaking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/ip_cloaking.c b/extensions/ip_cloaking.c index 657ab646..f4fb75e3 100644 --- a/extensions/ip_cloaking.c +++ b/extensions/ip_cloaking.c @@ -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);