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/dissectors/packet-tcp.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/dissectors/packet-tcp.c')
-rw-r--r-- | epan/dissectors/packet-tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index 9ddd88e020..325c81ba3b 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -935,8 +935,8 @@ gchar* tcp_follow_index_filter(int stream) gchar* tcp_follow_address_filter(address* src_addr, address* dst_addr, int src_port, int dst_port) { const gchar *ip_version = src_addr->type == AT_IPv6 ? "v6" : ""; - gchar src_addr_str[MAX_IP6_STR_LEN]; - gchar dst_addr_str[MAX_IP6_STR_LEN]; + gchar src_addr_str[WS_INET6_ADDRSTRLEN]; + gchar dst_addr_str[WS_INET6_ADDRSTRLEN]; address_to_str_buf(src_addr, src_addr_str, sizeof(src_addr_str)); address_to_str_buf(dst_addr, dst_addr_str, sizeof(dst_addr_str)); |