From: Steven Barth Date: Tue, 19 Mar 2013 10:13:15 +0000 (+0100) Subject: Fix IPv6 RDNSS writing to resolv.conf (buffer was too short) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=059242dea7a7c1e51314cf41ad27aac853a385f3;p=oweals%2Fnetifd.git Fix IPv6 RDNSS writing to resolv.conf (buffer was too short) --- 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));