aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftype-ipv4.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-28 22:50:33 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-29 05:51:25 +0000
commite1ef732c11da520262476b782bc73bfaf6e9ef1d (patch)
treed6d8d30e5eda162ce4ec79a6f7f6db76eed9da59 /epan/ftypes/ftype-ipv4.c
parent83a4eadc070bcfda137b0f44e02712b46e5cb1d0 (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/ftypes/ftype-ipv4.c')
-rw-r--r--epan/ftypes/ftype-ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-ipv4.c b/epan/ftypes/ftype-ipv4.c
index 00a085ad21..c07392ecc6 100644
--- a/epan/ftypes/ftype-ipv4.c
+++ b/epan/ftypes/ftype-ipv4.c
@@ -116,12 +116,12 @@ val_repr_len(fvalue_t *fv _U_, ftrepr_t rtype _U_, int field_display _U_)
return 15;
}
-/* We're assuming the buffer is at least MAX_IP_STR_LEN (16 bytes) */
+/* We're assuming the buffer is at least WS_INET_ADDRSTRLEN (16 bytes) */
static void
val_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, int field_display _U_, char *buf, unsigned int size _U_)
{
guint32 ipv4_net_order = g_htonl(fv->value.ipv4.addr);
- ip_to_str_buf((guint8*)&ipv4_net_order, buf, MAX_IP_STR_LEN);
+ ip_to_str_buf((guint8*)&ipv4_net_order, buf, WS_INET_ADDRSTRLEN);
}