diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-11-17 19:14:46 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2020-12-07 22:44:39 +0000 |
commit | 3492be606283932e58aca37e638b35c4bea81da8 (patch) | |
tree | 15d764f3b27edbc64150c3e0fe1236edc5cc5dd3 /agent/interfaces.c | |
parent | e51bcb25527f795f65d6593fa127a78c7840087c (diff) | |
download | libnice-3492be606283932e58aca37e638b35c4bea81da8.tar.gz |
interfaces: IPv6 addresses can have a scope and be very long
Just put a much larger buffer for this to work.
Fixes #126
Diffstat (limited to 'agent/interfaces.c')
-rw-r--r-- | agent/interfaces.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/interfaces.c b/agent/interfaces.c index f75f7cf..5b9eb9d 100644 --- a/agent/interfaces.c +++ b/agent/interfaces.c @@ -89,7 +89,7 @@ static const gchar *ignored_iface_prefix_list[] = { static gchar * sockaddr_to_string (const struct sockaddr *addr) { - char addr_as_string[INET6_ADDRSTRLEN+1]; + char addr_as_string[NI_MAXHOST]; size_t addr_len; switch (addr->sa_family) { |