Code

Use the correct macro for hostname max length
authorHamish Coleman <hamish@zot.org>
Mon, 20 Mar 2017 02:19:47 +0000 (10:19 +0800)
committerHamish Coleman <hamish@zot.org>
Mon, 20 Mar 2017 02:19:47 +0000 (10:19 +0800)
src/oping.c

index e2252a2d81ddfd76f1659ba72f2a1774509917e1..fc2bd659e42fc631f17f70f8b3cf3b75f189060a 100644 (file)
@@ -1354,7 +1354,7 @@ static int check_resize (pingobj_t *ping) /* {{{ */
                }
                else if (key == 'a')
                {
-                       char host[80];
+                       char host[NI_MAXHOST];
 
                        wprintw(main_win, "New Host: ");
                        echo();