From 514c433ab31adfbaa11f1a18c01e33b7fe4579ba Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Mon, 20 Mar 2017 10:19:47 +0800 Subject: [PATCH] Use the correct macro for hostname max length --- src/oping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oping.c b/src/oping.c index e2252a2..fc2bd65 100644 --- a/src/oping.c +++ b/src/oping.c @@ -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(); -- 2.30.2