projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
961f674
)
Merge branch 'collectd-3.10'
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 4 Nov 2006 12:18:06 +0000
(13:18 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 4 Nov 2006 12:18:06 +0000
(13:18 +0100)
src/ntpd.c
patch
|
blob
|
history
diff --git
a/src/ntpd.c
b/src/ntpd.c
index
d65d1ed
..
b65a9e8
100644
(file)
--- a/
src/ntpd.c
+++ b/
src/ntpd.c
@@
-694,6
+694,7
@@
static int ntpd_receive_response (int req_code, int *res_items, int *res_size,
(items_num + pkt_item_num) * res_item_size);
items = realloc ((void *) *res_data,
(items_num + pkt_item_num) * res_item_size);
+ items_num += pkt_item_num;
if (items == NULL)
{
items = *res_data;
@@
-881,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;