]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Increase buffers used to print IPv6 addresses
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Jan 2010 17:05:41 +0000 (18:05 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Jan 2010 17:05:41 +0000 (18:05 +0100)
client.c

index f27ce6465014dfacf59d8596052a6d3054b6705c..8ad8ba6458e7a51df4bf8bb7764f9ceb5e2ade78 100644 (file)
--- 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;