From 6e5902cbfd7cdf328d2c16f67738c3accaef8c0d Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 18 Apr 2005 18:26:05 +0000 Subject: [PATCH] corrected hopcounter --- mbtask/taskibc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbtask/taskibc.c b/mbtask/taskibc.c index d6e515f1..e4bfa83a 100644 --- a/mbtask/taskibc.c +++ b/mbtask/taskibc.c @@ -567,7 +567,7 @@ void command_server(char *hostname, char *parameters) */ for (ta = servers; ta; ta = ta->next) { if (ta->hops) { - sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops +1, ta->prod, ta->vers, ta->fullname); + sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops, ta->prod, ta->vers, ta->fullname); send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf); } } @@ -598,7 +598,7 @@ void command_server(char *hostname, char *parameters) */ for (ta = servers; ta; ta = ta->next) { if (ta->hops) { - sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops +1, ta->prod, ta->vers, ta->fullname); + sprintf(csbuf, "SERVER %s %d 0 %s %s %s\r\n", ta->server, ta->hops, ta->prod, ta->vers, ta->fullname); send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf); } }