diff options
author | Steven Barth <steven@midlink.org> | 2013-03-19 11:13:15 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-03-19 11:13:15 +0100 |
commit | 059242dea7a7c1e51314cf41ad27aac853a385f3 (patch) | |
tree | 46bf2fe5bf5edc28cf763f07efb34031bc8a4ca0 | |
parent | b8688d2960c998b60713deeff7df1603f7a8bd3e (diff) |
Fix IPv6 RDNSS writing to resolv.conf (buffer was too short)
-rw-r--r-- | interface-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |