From: Lubos Stanek Date: Sat, 4 Nov 2006 12:17:07 +0000 (+0100) Subject: ntpd plugin: Use the `NI_MAXHOST' define for the fixed-size buffer `peername'. X-Git-Tag: collectd-3.10.3~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0dbacdab20993808518704242844cb030d4a3863;p=collectd.git ntpd plugin: Use the `NI_MAXHOST' define for the fixed-size buffer `peername'. --- 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;