From: Hamish Coleman Date: Fri, 17 Feb 2017 07:52:16 +0000 (+0800) Subject: Handle duplicate hosts without visual corruption X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6b844685b14443d6ba38f2869d6d09f570848a5;p=liboping.git Handle duplicate hosts without visual corruption --- diff --git a/src/oping.c b/src/oping.c index 35e2420..47249b5 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1376,7 +1376,7 @@ static int check_resize (pingobj_t *ping) /* {{{ */ /* FIXME - scroll main_win correctly so that old * data is still visible */ need_resize = 1; - host_num++; + host_num = ping_iterator_count(ping); ping_initialize_contexts(ping); } }