From 0dbacdab20993808518704242844cb030d4a3863 Mon Sep 17 00:00:00 2001 From: Lubos Stanek Date: Sat, 4 Nov 2006 13:17:07 +0100 Subject: [PATCH] ntpd plugin: Use the `NI_MAXHOST' define for the fixed-size buffer `peername'. --- src/ntpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntpd.c b/src/ntpd.c index 52042709..b65a9e8f 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -882,7 +882,7 @@ static void ntpd_read (void) struct info_peer_summary *ptr; double offset; - char peername[512]; + char peername[NI_MAXHOST]; int refclock_id; ptr = ps + i; -- 2.11.0