projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98a4d6d
)
ntpd plugin: Use the `NI_MAXHOST' define for the fixed-size buffer `peername'.
author
Lubos Stanek
<lubek@users.sourceforge.net>
Sat, 4 Nov 2006 12:17:07 +0000
(13:17 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 4 Nov 2006 12:17:07 +0000
(13:17 +0100)
src/ntpd.c
patch
|
blob
|
history
diff --git
a/src/ntpd.c
b/src/ntpd.c
index
5204270
..
b65a9e8
100644
(file)
--- 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;