aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r--epan/dissectors/packet-diameter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c
index a302f04f3b..f67e3a5ecd 100644
--- a/epan/dissectors/packet-diameter.c
+++ b/epan/dissectors/packet-diameter.c
@@ -1871,7 +1871,7 @@ static void dissect_avps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *avp_tree
data = tvb_get_ptr(tvb, offset, avpDataLength);
proto_tree_add_string_format(avpi_tree, hf_diameter_avp_data_string,
- tvb, offset, avpDataLength, data,
+ tvb, offset, avpDataLength, (char*)data,
"Identity: %*.*s",
(int)avpDataLength,
(int)avpDataLength, data);
@@ -1883,7 +1883,7 @@ static void dissect_avps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *avp_tree
data = tvb_get_ptr(tvb, offset, avpDataLength);
proto_tree_add_string_format(avpi_tree, hf_diameter_avp_data_string,
- tvb, offset, avpDataLength, data,
+ tvb, offset, avpDataLength, (char*)data,
"UTF8String: %*.*s",
(int)avpDataLength,
(int)avpDataLength, data);