From f1ff3208a055f462e69c9ac7479271aecf784d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 1 Jun 2016 22:22:46 +0100 Subject: Move ip6_to_str_buf() to to_str.c and make it take the buffer length. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also make it use ws_inet_ntop6() (rather than implementing the string conversion ourselves). Remove ip6_to_str_buf_len(). Change-Id: I1eff3a8941e00987c2ff0c4dcfda13476af86191 Reviewed-on: https://code.wireshark.org/review/15692 Reviewed-by: João Valverde Reviewed-by: Michael Mann --- epan/addr_resolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/addr_resolv.c') diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index 2d003a70f2..936c43d0e8 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -828,7 +828,7 @@ new_ipv6(const struct e_in6_addr *addr) memcpy(tp->addr, addr->bytes, sizeof tp->addr); tp->flags = 0; tp->name[0] = '\0'; - ip6_to_str_buf(addr, tp->ip6); + ip6_to_str_buf(addr, tp->ip6, sizeof(tp->ip6)); return tp; } -- cgit v1.2.3