From baa977a3ed8e7564f1045dd746d13f943ec647c0 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 12 Jan 2010 18:05:41 +0100 Subject: [PATCH] Increase buffers used to print IPv6 addresses --- client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client.c b/client.c index f27ce64..8ad8ba6 100644 --- a/client.c +++ b/client.c @@ -1558,7 +1558,7 @@ process_cmd_sources(char *line) uint32_t latest_meas_ago; uint16_t poll, stratum; uint16_t state, mode; - char hostname_buf[32]; + char hostname_buf[50]; /* Check whether to output verbose headers */ verbose = check_for_verbose_flag(line); @@ -1658,7 +1658,7 @@ process_cmd_sourcestats(char *line) int n_sources, i; int verbose = 0; - char hostname_buf[32]; + char hostname_buf[50]; unsigned long n_samples, n_runs, span_seconds; double resid_freq_ppm, skew_ppm, sd, est_offset, est_offset_err; unsigned long ref_id; @@ -1859,7 +1859,7 @@ process_cmd_clients(char *line) unsigned long cmd_hits_bad; unsigned long last_ntp_hit_ago; unsigned long last_cmd_hit_ago; - char hostname_buf[32]; + char hostname_buf[50]; int n_replies; @@ -2044,7 +2044,7 @@ process_cmd_clients(char *line) unsigned long cmd_hits_bad; unsigned long last_ntp_hit_ago; unsigned long last_cmd_hit_ago; - char hostname_buf[32]; + char hostname_buf[50]; int n_replies; int n_indices_in_table;