diff --git a/src/oping.c b/src/oping.c
index 35e24201a8773aee93865f390b0a094900daac3d..87ca81a911ea7f7da8fad01d938fca0e2c6feffe 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
/**
* Object oriented C module to send ICMP and ICMPv6 `echo's.
- * Copyright (C) 2006-2016 Florian octo Forster <ff at octo.it>
+ * Copyright (C) 2006-2017 Florian octo Forster <ff at octo.it>
*
* 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
if (context->window != NULL)
{
- werase (context->window);
- wrefresh (context->window);
+ werase (context->window);
+ wrefresh (context->window);
delwin (context->window);
context->window = NULL;
}
/* 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);
}
}