diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-10-28 22:50:33 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-29 05:51:25 +0000 |
commit | e1ef732c11da520262476b782bc73bfaf6e9ef1d (patch) | |
tree | d6d8d30e5eda162ce4ec79a6f7f6db76eed9da59 /epan/addr_resolv.c | |
parent | 83a4eadc070bcfda137b0f44e02712b46e5cb1d0 (diff) |
Get rid of MAX_IP_STR_LEN and MAX_IP6_STR_LEN.
We have WS_INET_ADDRSTRLEN and WS_INET6_ADDRSTRLEN; use them.
Change-Id: Idade0da9fae70d891901acd787b06d21e2ddbc5f
Reviewed-on: https://code.wireshark.org/review/24156
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index 77df65c036..bc14ec5ff9 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -786,12 +786,12 @@ fill_dummy_ip4(const guint addr, hashipv4_t* volatile tp) if (0 != subnet_entry.mask) { /* Print name, then '.' then IP address after subnet mask */ guint32 host_addr; - gchar buffer[MAX_IP_STR_LEN]; + gchar buffer[WS_INET_ADDRSTRLEN]; gchar* paddr; gsize i; host_addr = addr & (~(guint32)subnet_entry.mask); - ip_to_str_buf((guint8 *)&host_addr, buffer, MAX_IP_STR_LEN); + ip_to_str_buf((guint8 *)&host_addr, buffer, WS_INET_ADDRSTRLEN); paddr = buffer; /* Skip to first octet that is not totally masked |