Update copyright notices.
[liboping.git] / src / oping.c
index f48309a..87ca81a 100644 (file)
@@ -1,6 +1,6 @@
 /**
  * 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
@@ -1324,6 +1324,8 @@ static int on_resize (pingobj_t *ping) /* {{{ */
 
                if (context->window != NULL)
                {
+                       werase (context->window);
+                       wrefresh (context->window);
                        delwin (context->window);
                        context->window = NULL;
                }
@@ -1374,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);
                        }
                }