X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Foping.c;h=87ca81a911ea7f7da8fad01d938fca0e2c6feffe;hb=HEAD;hp=35e24201a8773aee93865f390b0a094900daac3d;hpb=eb18372a3ff1cd42c57e256b5f0cc948d7abb7f0;p=liboping.git diff --git a/src/oping.c b/src/oping.c index 35e2420..87ca81a 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1,6 +1,6 @@ /** * Object oriented C module to send ICMP and ICMPv6 `echo's. - * Copyright (C) 2006-2016 Florian octo Forster + * Copyright (C) 2006-2017 Florian octo Forster * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1324,8 +1324,8 @@ static int on_resize (pingobj_t *ping) /* {{{ */ if (context->window != NULL) { - werase (context->window); - wrefresh (context->window); + werase (context->window); + wrefresh (context->window); delwin (context->window); context->window = NULL; } @@ -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); } }