From 059242dea7a7c1e51314cf41ad27aac853a385f3 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 19 Mar 2013 11:13:15 +0100 Subject: [PATCH] Fix IPv6 RDNSS writing to resolv.conf (buffer was too short) --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-ip.c b/interface-ip.c index fc5a4a3..21c603d 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -760,7 +760,7 @@ write_resolv_conf_entries(FILE *f, struct interface_ip_settings *ip) struct dns_server *s; struct dns_search_domain *d; const char *str; - char buf[32]; + char buf[INET6_ADDRSTRLEN]; vlist_simple_for_each_element(&ip->dns_servers, s, node) { str = inet_ntop(s->af, &s->addr, buf, sizeof(buf)); -- 2.25.1