diff options
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 |